diff --git a/src/client/components/ConfirmDialog.ts b/src/client/components/ConfirmDialog.ts index f92e2f14d..f2dcdbaf3 100644 --- a/src/client/components/ConfirmDialog.ts +++ b/src/client/components/ConfirmDialog.ts @@ -3,7 +3,7 @@ import { customElement, property, state } from "lit/decorators.js"; import { translateText } from "../Utils"; /** - * A reusable inline confirmation dialog. + * A reusable inline confirmation / acknowledgement dialog. * * Usage: * ```html @@ -28,10 +28,16 @@ import { translateText } from "../Utils"; */ @customElement("confirm-dialog") export class ConfirmDialog extends LitElement { + @property() heading = ""; @property() message = ""; @property() variant: "danger" | "warning" = "danger"; @property() textareaPlaceholder = ""; + @property() confirmText = ""; @property({ type: Boolean }) disabled = false; + @property({ type: Boolean }) showClose = false; + @property({ type: Boolean }) wide = false; + @property() buttons: "confirmCancel" | "confirmOnly" | "none" = + "confirmCancel"; @state() private text = ""; @@ -74,14 +80,29 @@ export class ConfirmDialog extends LitElement { return html`
${this.message}
${this.textareaPlaceholder ? html`` : ""} -