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

@@ -314,7 +314,7 @@ export class NotesState {
let noteTitle = undefined;
if (this.selectedNotesCount === 1) {
const selectedNote = Object.values(this.selectedNotes)[0];
noteTitle = selectedNote.safeTitle().length
noteTitle = selectedNote.title.length
? `'${selectedNote.title}'`
: 'this note';
}