fix(webui): bind view publication to help
Module Package Release / publish-packages (push) Successful in 12s
Module Package Release / publish-packages (push) Successful in 12s
This commit is contained in:
+1
-1
@@ -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,3 +1,3 @@
|
|||||||
"""GovOPlaN Views module."""
|
"""GovOPlaN Views module."""
|
||||||
|
|
||||||
__version__ = "0.1.20"
|
__version__ = "0.1.21"
|
||||||
|
|||||||
@@ -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
@@ -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)}
|
||||||
|
|||||||
Reference in New Issue
Block a user