Skip to content

ViewActivate ​

Overview ​

View that renders a confirmation form for the activate action via ModelActionForm, then sends a PATCH request to the activate endpoint when the user confirms. Contributes its title to the layout's PageTitle display via usePageTitle and teleports its "Go Back" action into the title action zone via PageActions, matching sibling action-router views (ViewAction, ViewExecuteTransition, ViewHistoryList).

Theme entry: ViewActivate

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
appstringyesDjango app label that owns the model.
modelstringyesDjango model name whose instances will be activated.
pkstring|arrayyesPrimary key or array of primary keys identifying the instances to activate.
titlestringundefinedPage title override. The default title is "Activate" followed by the model's verbose name. When pk lists more than one object, the default uses the verbose plural name. The default is empty until the verbose name is known, so the layout shows a skeleton.

Slots ​

slot ​

Scoped slot.

Source ​

client/lib/views/ViewActivate.vue