fix(webui): bind key revocation to help

This commit is contained in:
2026-08-24 11:36:40 +02:00
parent 80dabde81d
commit f6f949a2e2
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "govoplan-identity-trust" name = "govoplan-identity-trust"
version = "0.1.19" version = "0.1.20"
description = "Public device-key, assurance, and key-epoch trust services for GovOPlaN." description = "Public device-key, assurance, and key-epoch trust services for GovOPlaN."
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
@@ -36,7 +36,7 @@ from govoplan_identity_trust.backend.service import SqlIdentityTrustService
MODULE_ID = "identity_trust" MODULE_ID = "identity_trust"
MODULE_NAME = "Identity Trust" MODULE_NAME = "Identity Trust"
MODULE_VERSION = "0.1.19" MODULE_VERSION = "0.1.20"
DEVICE_READ_SCOPE = "identity_trust:device:read" DEVICE_READ_SCOPE = "identity_trust:device:read"
DEVICE_WRITE_SCOPE = "identity_trust:device:write" DEVICE_WRITE_SCOPE = "identity_trust:device:write"
KEY_ACCESS_SCOPE = "identity_trust:key_access:approve" KEY_ACCESS_SCOPE = "identity_trust:key_access:approve"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@govoplan/identity-trust-webui", "name": "@govoplan/identity-trust-webui",
"version": "0.1.19", "version": "0.1.20",
"private": true, "private": true,
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
+1 -1
View File
@@ -287,7 +287,7 @@ export default function IdentityTrustPanel({ settings, auth, administrative = fa
</>} </>}
</LoadingFrame> </LoadingFrame>
<Dialog open={Boolean(revoking)} title="Revoke device key" onClose={() => !busy && setRevoking(null)} closeDisabled={busy} footer={<><Button onClick={() => setRevoking(null)} disabled={busy}>Cancel</Button><Button variant="danger" onClick={() => void applyRevoke()} disabled={busy || !revocationReason.trim()}>Revoke key</Button></>}> <Dialog open={Boolean(revoking)} title="Revoke device key" helpContextId="identity_trust.settings.devices" helpModuleId="identity_trust" onClose={() => !busy && setRevoking(null)} closeDisabled={busy} footer={<><Button onClick={() => setRevoking(null)} disabled={busy}>Cancel</Button><Button variant="danger" helpContextId="identity_trust.settings.devices" helpModuleId="identity_trust" onClick={() => void applyRevoke()} disabled={busy || !revocationReason.trim()}>Revoke key</Button></>}>
<p>Revoke <strong>{revoking?.key_id}</strong>? Future key-access decisions will reject this device. Plaintext, exports, and keys already obtained by the device cannot be recalled.</p> <p>Revoke <strong>{revoking?.key_id}</strong>? Future key-access decisions will reject this device. Plaintext, exports, and keys already obtained by the device cannot be recalled.</p>
<FormField label="Reason"><textarea rows={4} value={revocationReason} disabled={busy} onChange={(event) => setRevocationReason(event.target.value)} /></FormField> <FormField label="Reason"><textarea rows={4} value={revocationReason} disabled={busy} onChange={(event) => setRevocationReason(event.target.value)} /></FormField>
</Dialog> </Dialog>