fix: change lock mentions to prevent editing

This commit is contained in:
Antonella Sgarlatta
2021-04-30 16:48:38 -03:00
parent 9bf9cc37da
commit 0330497d1d
3 changed files with 10 additions and 10 deletions

View File

@@ -35,13 +35,13 @@ export const STRING_GENERIC_SAVE_ERROR =
export const STRING_DELETE_PLACEHOLDER_ATTEMPT =
'This note is a placeholder and cannot be deleted. To remove from your list, simply navigate to a different note.';
export const STRING_ARCHIVE_LOCKED_ATTEMPT =
"This note is locked. If you'd like to archive it, unlock it, and try again.";
"This note has editing disabled. If you'd like to archive it, enable editing, and try again.";
export const STRING_UNARCHIVE_LOCKED_ATTEMPT =
"This note is locked. If you'd like to archive it, unlock it, and try again.";
"This note has editing disabled. If you'd like to unarchive it, enable editing, and try again.";
export const STRING_DELETE_LOCKED_ATTEMPT =
"This note is locked. If you'd like to delete it, unlock it, and try again.";
"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 is locked. If you'd like to edit its options, unlock it, and try again.";
"This note has editing disabled. If you'd like to edit its options, enable editing, and try again.";
export function StringDeleteNote(title: string, permanently: boolean) {
return permanently
? `Are you sure you want to permanently delete ${title}?`

View File

@@ -10,9 +10,9 @@
.sn-component
.sk-app-bar.no-edges(
ng-if='self.noteLocked',
ng-init="self.lockText = 'Note Locked'",
ng-mouseleave="self.lockText = 'Note Locked'",
ng-mouseover="self.lockText = 'Unlock'"
ng-init="self.lockText = 'Note Editing Disabled'",
ng-mouseleave="self.lockText = 'Note Editing Disabled'",
ng-mouseover="self.lockText = 'Enable Editing'"
)
.left
.sk-app-bar-item(ng-click='self.toggleLockNote()')
@@ -89,8 +89,8 @@
)
menu-row(
action='self.selectedMenuItem(true); self.toggleLockNote()'
desc="'Locking notes prevents unintentional editing'",
label="self.noteLocked ? 'Unlock' : 'Lock'"
desc="'Prevent unintentional editing of a note'",
label="self.noteLocked ? 'Enable Editing' : 'Prevent Editing'"
)
menu-row(
action='self.selectedMenuItem(true); self.toggleProtectNote()'

View File

@@ -665,7 +665,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
}
if (note.locked) {
flags.push({
text: "Locked",
text: "Editing Disabled",
class: 'neutral'
});
}