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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| iconOverride | Object | null | A partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants. | |
| themeOverride | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| app | string | yes | Django app label that owns the model. | |
| model | string | yes | Django model name whose instance will be deactivated. | |
| pk | string|array | yes | Primary 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
| Name | Scoped | Description |
|---|---|---|
message | message Override the default suspension explanation paragraph. |
Events
| Name | Description |
|---|---|
success | Emitted after the deactivate PATCH succeeds. |
Source
client/lib/views/ViewDeactivate.vue