Adopt semantic campaign page actions
This commit is contained in:
@@ -43,7 +43,7 @@ import { DataGrid, type DataGridQueryState } from "@govoplan/core-webui";
|
||||
import { DismissibleAlert } from "@govoplan/core-webui";
|
||||
import { ConfirmDialog } from "@govoplan/core-webui";
|
||||
import { LoadingFrame } from "@govoplan/core-webui";
|
||||
import { PageLayout } from "@govoplan/core-webui";
|
||||
import { PageActionBar, PageLayout } from "@govoplan/core-webui";
|
||||
import { StatusBadge } from "@govoplan/core-webui";
|
||||
import { ToggleSwitch } from "@govoplan/core-webui";
|
||||
import { i18nMessage } from "@govoplan/core-webui";
|
||||
@@ -1365,20 +1365,21 @@ export default function ReviewSendPage({
|
||||
|
||||
return (
|
||||
<PageLayout
|
||||
archetype="workspace"
|
||||
mode="workspace"
|
||||
className="review-send-page"
|
||||
title="i18n:govoplan-campaign.review_send.1627617d"
|
||||
description={<VersionLine version={version} versions={data.versions} loadedAt={version?.updated_at} />}
|
||||
headerLoading={loading || Boolean(busy)}
|
||||
error={error}
|
||||
actions={
|
||||
<>
|
||||
<Button onClick={() => void refreshQueueStatus(false)} disabled={!version || queueStatusLoading || Boolean(busy)}>
|
||||
actions={<PageActionBar
|
||||
variant="workspace"
|
||||
refreshable
|
||||
reloadAction={<Button onClick={() => void reload({ force: true })} disabled={loading || Boolean(busy)}>i18n:govoplan-campaign.reload.cce71553</Button>}
|
||||
primaryActions={<Button onClick={() => void refreshQueueStatus(false)} disabled={!version || queueStatusLoading || Boolean(busy)}>
|
||||
{queueStatusLoading ? "i18n:govoplan-campaign.refreshing_status.d8965739" : "i18n:govoplan-campaign.refresh_status.ade15a52"}
|
||||
</Button>
|
||||
<Button onClick={() => void reload({ force: true })} disabled={loading || Boolean(busy)}>Discard</Button>
|
||||
</>
|
||||
}
|
||||
</Button>}
|
||||
/>}
|
||||
notices={(message || (version && (historicalVersion || readyForDelivery || userLockedVersion || finalVersion))) ? <>
|
||||
{message && <DismissibleAlert tone="info" resetKey={message} floating>{message}</DismissibleAlert>}
|
||||
{version && (historicalVersion || readyForDelivery || userLockedVersion || finalVersion) &&
|
||||
|
||||
Reference in New Issue
Block a user