Ga naar hoofdinhoud

CnEditSupportModal

Isolated NcDialog (ADR-004 modal isolation) that edits the support and donation note in the working manifest copy (ADR-041): the one-time, dismissible note an app shows the first time a user opens it. All edits mutate the passed working copy only.

The note introduces the team and offers to donate, suggest a feature, review the app, or get support. Every field is optional: leave one blank and the shell's own default is used, so an app declares only what it overrides.

Reads and writes manifest.support, which CnAppRoot reads to decide whether to mount CnSupportDialog on first open.

Opened by CnBuildiqEditButton's "Edit support & donation…" item, and mountable on its own surface by any consumer.

Import

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

Props

PropTypeDefaultDescription
workingObjectnullThe working manifest copy whose support block is edited in place.

Events

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

What it edits

FieldPurpose
enabledWhether the note shows on first open. Omit for the default.
titleDialog heading.
appNameName interpolated into the body copy.
bodyParagraphsBody copy, one entry per paragraph.
founderName / founderTitleSignature name and role.
founderAvatarUrl / founderProfileUrlSignature avatar and the profile it links to.
buttonsPer-button overrides for the four built-ins: donate, support, feature-request, app-store. Each takes enabled, label, url, variant and icon.