Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/rules/hooks/useRuleEdit

Cockpit client (features), next. Source: ui/client/features/rules/hooks/useRuleEdit.ts.

Functions#

useRuleEdit()#

useRuleEdit(onSaved): RuleEditApi

Defined in: ui/client/features/rules/hooks/useRuleEdit.ts:11

One rule's severity edit as a reviewable diff: pick a severity, preview the resulting architecture.yml, then confirm to save (or cancel). onSaved re-reads the rules list so the row's own severity and live violation count reflect the change immediately.

Parameters#

onSaved

() => void

Returns#

RuleEditApi