fix(webui): bind destructive dataflow controls 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-dataflow"
|
name = "govoplan-dataflow"
|
||||||
version = "0.1.22"
|
version = "0.1.23"
|
||||||
description = "Governed graphical and SQL data pipelines for GovOPlaN."
|
description = "Governed graphical and SQL data pipelines for GovOPlaN."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = "0.1.22"
|
__version__ = "0.1.23"
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ from govoplan_dataflow.backend.german_documentation import (
|
|||||||
|
|
||||||
MODULE_ID = "dataflow"
|
MODULE_ID = "dataflow"
|
||||||
MODULE_NAME = "Dataflow"
|
MODULE_NAME = "Dataflow"
|
||||||
MODULE_VERSION = "0.1.22"
|
MODULE_VERSION = "0.1.23"
|
||||||
|
|
||||||
READ_SCOPE = "dataflow:pipeline:read"
|
READ_SCOPE = "dataflow:pipeline:read"
|
||||||
WRITE_SCOPE = "dataflow:pipeline:write"
|
WRITE_SCOPE = "dataflow:pipeline:write"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@govoplan/dataflow-webui",
|
"name": "@govoplan/dataflow-webui",
|
||||||
"version": "0.1.22",
|
"version": "0.1.23",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -816,6 +816,8 @@ export default function DataflowPage({ settings, auth }: { settings: ApiSettings
|
|||||||
destructiveActions={draft.id ? (
|
destructiveActions={draft.id ? (
|
||||||
<IconButton
|
<IconButton
|
||||||
label="Delete pipeline"
|
label="Delete pipeline"
|
||||||
|
helpContextId="dataflow.action.delete"
|
||||||
|
helpModuleId="dataflow"
|
||||||
icon={<Trash2 size={16} />}
|
icon={<Trash2 size={16} />}
|
||||||
variant="danger"
|
variant="danger"
|
||||||
onClick={() => setDeleteOpen(true)}
|
onClick={() => setDeleteOpen(true)}
|
||||||
@@ -2039,6 +2041,8 @@ function DataflowTriggersDialog({
|
|||||||
{selected.last_error ? <small className="is-error">{selected.last_error}</small> : null}
|
{selected.last_error ? <small className="is-error">{selected.last_error}</small> : null}
|
||||||
<Button
|
<Button
|
||||||
variant="danger"
|
variant="danger"
|
||||||
|
helpContextId="dataflow.action.delete"
|
||||||
|
helpModuleId="dataflow"
|
||||||
onClick={() => requestNavigation(() => setDeleteCandidate(selected))}
|
onClick={() => requestNavigation(() => setDeleteCandidate(selected))}
|
||||||
disabled={busy || !editable}
|
disabled={busy || !editable}
|
||||||
disabledReason={busy ? DATAFLOW_I18N.working : !editable ? DATAFLOW_I18N.writeReason : undefined}
|
disabledReason={busy ? DATAFLOW_I18N.working : !editable ? DATAFLOW_I18N.writeReason : undefined}
|
||||||
|
|||||||
@@ -182,6 +182,8 @@ export default function NodeInspector({
|
|||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
label="Delete node"
|
label="Delete node"
|
||||||
|
helpContextId="dataflow.action.delete"
|
||||||
|
helpModuleId="dataflow"
|
||||||
icon={<Trash2 size={16} />}
|
icon={<Trash2 size={16} />}
|
||||||
variant="danger"
|
variant="danger"
|
||||||
onClick={() => onDelete(node.id)}
|
onClick={() => onDelete(node.id)}
|
||||||
|
|||||||
Reference in New Issue
Block a user