mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
chore(client/ts): port widgets/dialogs/confirm
This commit is contained in:
@@ -27,12 +27,16 @@ const TPL = `
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
export type ConfirmDialogCallback = (val: false | {
|
||||
type ConfirmDialogCallback = (val: false | ConfirmDialogOptions) => void;
|
||||
|
||||
export interface ConfirmDialogOptions {
|
||||
confirmed: boolean;
|
||||
isDeleteNoteChecked: boolean
|
||||
}) => void;
|
||||
}
|
||||
|
||||
interface ConfirmWithMessageOptions {
|
||||
// For "showConfirmDialog"
|
||||
|
||||
export interface ConfirmWithMessageOptions {
|
||||
message: string | HTMLElement | JQuery<HTMLElement>;
|
||||
callback: ConfirmDialogCallback;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user