Skip to main content

CnEditActionsModal

Isolated NcModal (ADR-004 modal isolation) that edits the action buttons of the active page in the working manifest copy (ADR-041): add, remove, reorder, relabel, re-icon and re-target the page's config.actions[] — the quick buttons and overflow Actions items the page renders. All edits mutate the passed working copy only.

Opened by CnOpenBuildEditButton's "Edit actions…" item. Each action carries a type (open-page / navigate / open-modal / handler) selected via an NcSelect (with inputLabel); the target field's label adapts to the type.

Import

import { CnEditActionsModal } from '@conduction/nextcloud-vue'

Props

PropTypeDefaultDescription
workingObjectnullThe working manifest copy whose active-page config.actions[] is edited in place.
pageIdString''The active page's id; selects which page's actions to edit.

Events

EventPayloadDescription
closeEmitted when the modal is dismissed or "Done" is clicked.