feat: add warning to note options menu if note size is >0.5mb (#851)

This commit is contained in:
Aman Harwara
2022-02-07 20:38:19 +05:30
committed by GitHub
parent 9932c2a177
commit 5605baeb57
11 changed files with 52 additions and 12 deletions

View File

@@ -672,9 +672,7 @@ export class NoteView extends PureComponent<Props, State> {
this.application.alertService.alert(STRING_DELETE_LOCKED_ATTEMPT);
return;
}
const title = this.note.safeTitle().length
? `'${this.note.title}'`
: 'this note';
const title = this.note.title.length ? `'${this.note.title}'` : 'this note';
const text = StringDeleteNote(title, permanently);
if (
await confirmDialog({