Skip to content

ViewDeactivate

Overview

Self-service account deactivation view. Wraps the deactivate action in a warning-toned SystemMessageCard chassis: an icon crest identifies the action, an optional ConsequencesBullets list communicates the impact, and a TypedConfirmField gates the destructive button on the operator typing their own email address. Sends a PATCH to the model's deactivate endpoint on confirmation.

Theme entry: ViewDeactivate

Props

NameTypeRequiredDefaultDescription
iconOverrideObjectnullA partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants.
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
appstringyesDjango app label that owns the model.
modelstringyesDjango model name whose instance will be deactivated.
pkstring|arrayyesPrimary key or array of primary keys identifying the instances to deactivate.
consequences{ icon?: string, label: string, description?: string, tone?: ('default'|'warn'|'danger') }[][]Consequence rows forwarded to ConsequencesBullets. When empty no bullets section is rendered. Each entry follows the { icon?, label, description?, tone? } shape from ConsequencesBullets.

Slots

NameScopedDescription
messagemessage Override the default suspension explanation paragraph.

Full slot reference

Events

NameDescription
successEmitted after the deactivate PATCH succeeds.

Full event reference

Source

client/lib/views/ViewDeactivate.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2