fix: alertService.confirm
This commit is contained in:
@@ -110,14 +110,12 @@ class RevisionPreviewModalCtrl implements RevisionPreviewScope {
|
|||||||
|
|
||||||
if (!asCopy) {
|
if (!asCopy) {
|
||||||
this.application.alertService!.confirm(
|
this.application.alertService!.confirm(
|
||||||
"Are you sure you want to replace the current note's contents with what you see in this preview?",
|
"Are you sure you want to replace the current note's contents with what you see in this preview?"
|
||||||
undefined,
|
).then((confirmed) => {
|
||||||
undefined,
|
if (confirmed) {
|
||||||
undefined,
|
run();
|
||||||
run,
|
}
|
||||||
undefined,
|
});
|
||||||
true,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
run();
|
run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user