diff --git a/webui/src/features/voting/VotingPage.tsx b/webui/src/features/voting/VotingPage.tsx index d412d61..cf366dd 100644 --- a/webui/src/features/voting/VotingPage.tsx +++ b/webui/src/features/voting/VotingPage.tsx @@ -1,7 +1,6 @@ -import { CheckCircle2, Pencil, Plus, RefreshCw, ShieldCheck, XCircle } from "lucide-react"; +import { CheckCircle2, Pencil, Plus, ShieldCheck, XCircle } from "lucide-react"; import { useCallback, useEffect, useMemo, useState } from "react"; -import { ActionToolbar, - ActionBlockerHint, +import { ActionBlockerHint, Button, ConfirmDialog, Dialog, @@ -18,6 +17,7 @@ import { ActionToolbar, SelectionListItemContent, StatePanel, StatusBadge, + WorkspaceActionBar, WorkspaceLayout, hasScope, i18nMessage, @@ -165,11 +165,15 @@ export default function VotingPage({ settings, auth }: PlatformRouteContext) { helpContextId="voting.workspace" helpModuleId="voting" primary={<> - - } disabled={loading || busy} disabledReason={loading ? VOTING_I18N.loading : busy ? VOTING_I18N.busy : undefined} onClick={() => void loadList()} /> - - - + void loadList(), loading: loading || busy, label: "Refresh ballots" }} + className="voting-toolbar" + createAction={} + helpAction={} + /> {loading && } {!loading && items.length === 0 && }