Skip to content

Commit

Permalink
fix: alertService.confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny243 committed Jul 14, 2020
1 parent e6d87fa commit 875d4f1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/assets/javascripts/directives/views/revisionPreviewModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 875d4f1

Please sign in to comment.