Skip to content

Generic confirmation dialog containing a reason-field #5203

@mutec

Description

@mutec

It would be good to have a pre-defined dialog containing a reason-field like softDelete() for other purposes. The question/title should be provided per function-argument.
While preparing several packages for WSC 6, I had to implement a function like softDelete() multiple times yet; just because I need a dedicated title and the additional reason-field.

async customReason(question?: string, askForReason = false, reasonFieldLabel = ""): Promise<ResultCustomReason> {
    // dummy
}

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions