fix: change lock mentions to prevent editing
This commit is contained in:
@@ -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}?`
|
||||
|
||||
@@ -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()'
|
||||
|
||||
@@ -665,7 +665,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
|
||||
}
|
||||
if (note.locked) {
|
||||
flags.push({
|
||||
text: "Locked",
|
||||
text: "Editing Disabled",
|
||||
class: 'neutral'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user