diff --git a/webui/src/features/templates/TemplatesPage.tsx b/webui/src/features/templates/TemplatesPage.tsx index b9ea2ed..2d339a4 100644 --- a/webui/src/features/templates/TemplatesPage.tsx +++ b/webui/src/features/templates/TemplatesPage.tsx @@ -10,7 +10,7 @@ import { X } from "lucide-react"; import { useCallback, useEffect, useMemo, useState } from "react"; -import { +import { DialogSection, ToolbarGroup, ActionToolbar, ApiError, ActionBlockerHint, Button, @@ -296,10 +296,10 @@ export default function TemplatesPage({ settings, auth }: Props) {
-
+ {selected?.name ?? "Select a template"} {selected ? `${typeLabel(selected.template_type)} ยท ${selected.revision.locale}` : ""} -
+ } disabled={loading || busy} disabledReason={loading ? TEMPLATES_I18N.loading : busy ? TEMPLATES_I18N.busy : undefined} onClick={() => requestDiscard(() => void reload(selectedId))} /> @@ -341,8 +341,8 @@ export default function TemplatesPage({ settings, auth }: Props) { options={[{ id: "definition", label: "Definition" }, { id: "preview", label: "Preview" }]} ariaLabel="Template workspace" /> -
-
+ +
{error && {error}} @@ -392,10 +392,10 @@ export default function TemplatesPage({ settings, auth }: Props) {
}> -
+ setCreateName(event.target.value)} /> -
+
setPublishOpen(false)} onConfirm={() => void publish()} /> setFinalRenderOpen(false)} onConfirm={() => void runRender(true)} />