More TypeScript

This commit is contained in:
Mo Bitar
2020-04-10 09:21:45 -05:00
parent b5b53fdc43
commit 16bde8d1d4
11 changed files with 106 additions and 144 deletions

View File

@@ -545,10 +545,10 @@ class EditorCtrl extends PureCtrl {
const title = this.state.note.safeTitle().length
? `'${this.state.note.title}'`
: "this note";
const text = StringDeleteNote({
title: title,
permanently: permanently
});
const text = StringDeleteNote(
title,
permanently
);
this.application.alertService.confirm({
text: text,
destructive: true,
@@ -616,7 +616,7 @@ class EditorCtrl extends PureCtrl {
emptyTrash() {
const count = this.getTrashCount();
this.application.alertService.confirm({
text: StringEmptyTrash({ count }),
text: StringEmptyTrash(count),
destructive: true,
onConfirm: () => {
this.application.emptyTrash();