fix: prevent restoring version if note is locked

This commit is contained in:
Antonella Sgarlatta
2021-07-12 19:30:57 -03:00
parent bd65ca0815
commit 86fd93ab0e
2 changed files with 7 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ export const STRING_DELETE_LOCKED_ATTEMPT =
"This note had editing disabled. If you'd like to delete it, enable editing, and try again.";
export const STRING_EDIT_LOCKED_ATTEMPT =
"This note has editing disabled. If you'd like to edit its options, enable editing, and try again.";
export const STRING_RESTORE_LOCKED_ATTEMPT =
"This note has editing disabled. If you'd like to restore a different version if it, enable editing, and try again."
export function StringDeleteNote(title: string, permanently: boolean) {
return permanently
? `Are you sure you want to permanently delete ${title}?`