From 69416faca9644875628993c3938e74f382493a61 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 24 Aug 2026 11:36:45 +0200 Subject: [PATCH] fix(webui): bind template lifecycle controls to help --- pyproject.toml | 2 +- src/govoplan_templates/__init__.py | 2 +- src/govoplan_templates/backend/manifest.py | 2 +- webui/package.json | 2 +- webui/src/features/templates/TemplatesPage.tsx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 809ac31..849f9b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-templates" -version = "0.1.20" +version = "0.1.21" description = "GovOPlaN typed template library and deterministic printable rendering." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_templates/__init__.py b/src/govoplan_templates/__init__.py index 5c7f3e2..c45888b 100644 --- a/src/govoplan_templates/__init__.py +++ b/src/govoplan_templates/__init__.py @@ -1,3 +1,3 @@ """GovOPlaN Templates module.""" -__version__ = "0.1.20" +__version__ = "0.1.21" diff --git a/src/govoplan_templates/backend/manifest.py b/src/govoplan_templates/backend/manifest.py index 9aab7d7..3a8cdd1 100644 --- a/src/govoplan_templates/backend/manifest.py +++ b/src/govoplan_templates/backend/manifest.py @@ -43,7 +43,7 @@ from govoplan_templates.backend.dsar_provider import ( MODULE_ID = "templates" MODULE_NAME = "Templates" -MODULE_VERSION = "0.1.20" +MODULE_VERSION = "0.1.21" READ_SCOPE = "templates:template:read" WRITE_SCOPE = "templates:template:write" diff --git a/webui/package.json b/webui/package.json index b36c63e..6a30152 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/templates-webui", - "version": "0.1.20", + "version": "0.1.21", "private": true, "type": "module", "main": "src/index.ts", diff --git a/webui/src/features/templates/TemplatesPage.tsx b/webui/src/features/templates/TemplatesPage.tsx index 4bb7424..15c6c14 100644 --- a/webui/src/features/templates/TemplatesPage.tsx +++ b/webui/src/features/templates/TemplatesPage.tsx @@ -353,7 +353,7 @@ export default function TemplatesPage({ settings, auth }: Props) { } helpAction={} primaryActions={<> - + } - destructiveActions={} variant="danger" disabled={!selected || readOnly} disabledReason={!selected ? TEMPLATES_I18N.noSelection : readOnly ? (canWrite ? TEMPLATES_I18N.readOnlyReason : TEMPLATES_I18N.writeReason) : undefined} onClick={() => setDeleteOpen(true)} />} + destructiveActions={} variant="danger" disabled={!selected || readOnly} disabledReason={!selected ? TEMPLATES_I18N.noSelection : readOnly ? (canWrite ? TEMPLATES_I18N.readOnlyReason : TEMPLATES_I18N.writeReason) : undefined} onClick={() => setDeleteOpen(true)} />} discardAction={{ label: "Discard and reload", onClick: () => requestDiscard(() => void reload(selectedId)), disabled: !selected }} saveAction={{ label: <> Save revision,