fix(webui): bind view publication to help

This commit is contained in:
2026-08-24 11:36:48 +02:00
parent 4e574f3bdd
commit 69a13bcca7
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "govoplan-views" name = "govoplan-views"
version = "0.1.20" version = "0.1.21"
description = "Governed task-focused interface projections for GovOPlaN." description = "Governed task-focused interface projections for GovOPlaN."
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
+1 -1
View File
@@ -1,3 +1,3 @@
"""GovOPlaN Views module.""" """GovOPlaN Views module."""
__version__ = "0.1.20" __version__ = "0.1.21"
+1 -1
View File
@@ -39,7 +39,7 @@ from govoplan_views.backend.dsar_provider import (
MODULE_ID = "views" MODULE_ID = "views"
MODULE_NAME = "Views" MODULE_NAME = "Views"
MODULE_VERSION = "0.1.20" MODULE_VERSION = "0.1.21"
DEFINITION_READ_SCOPE = "views:definition:read" DEFINITION_READ_SCOPE = "views:definition:read"
DEFINITION_WRITE_SCOPE = "views:definition:write" DEFINITION_WRITE_SCOPE = "views:definition:write"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@govoplan/views-webui", "name": "@govoplan/views-webui",
"version": "0.1.20", "version": "0.1.21",
"private": true, "private": true,
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
@@ -711,6 +711,8 @@ export default function ViewsAdminPanel({
</Button> </Button>
<Button <Button
variant="primary" variant="primary"
helpContextId="views.action.publish"
helpModuleId="views"
onClick={() => void publishDraft()} onClick={() => void publishDraft()}
disabled={Boolean(editDisabledReason) || !draft.name.trim()} disabled={Boolean(editDisabledReason) || !draft.name.trim()}
disabledReason={editDisabledReason ?? (!draft.name.trim() ? VIEWS_INTERFACE_I18N.nameRequiredText : undefined)} disabledReason={editDisabledReason ?? (!draft.name.trim() ? VIEWS_INTERFACE_I18N.nameRequiredText : undefined)}