Ga naar hoofdinhoud

CnEditSidebarModal

Isolated NcModal (ADR-004 modal isolation) that edits the right sidebar of the active page in the working manifest copy (ADR-041): toggle whole-sidebar visibility and the visibility of each declared tab (page.config.sidebar). All edits mutate the passed working copy only — never the base manifest.

Opened by CnOpenBuildEditButton's "Edit sidebar…" action. Uses NcCheckboxRadioSwitch (no NcSelect), so no input-label wiring is required.

Import

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

Props

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

Events

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