fix: alertService.confirm

This commit is contained in:
Johnny Almonte
2020-07-14 10:59:46 -04:00
parent e6d87fa40d
commit 875d4f1fc0

View File

@@ -110,14 +110,12 @@ class RevisionPreviewModalCtrl implements RevisionPreviewScope {
if (!asCopy) {
this.application.alertService!.confirm(
"Are you sure you want to replace the current note's contents with what you see in this preview?",
undefined,
undefined,
undefined,
run,
undefined,
true,
);
"Are you sure you want to replace the current note's contents with what you see in this preview?"
).then((confirmed) => {
if (confirmed) {
run();
}
});
} else {
run();
}