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 =
|
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.';
|
'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 =
|
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 =
|
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 =
|
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 =
|
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) {
|
export function StringDeleteNote(title: string, permanently: boolean) {
|
||||||
return permanently
|
return permanently
|
||||||
? `Are you sure you want to permanently delete ${title}?`
|
? `Are you sure you want to permanently delete ${title}?`
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
.sn-component
|
.sn-component
|
||||||
.sk-app-bar.no-edges(
|
.sk-app-bar.no-edges(
|
||||||
ng-if='self.noteLocked',
|
ng-if='self.noteLocked',
|
||||||
ng-init="self.lockText = 'Note Locked'",
|
ng-init="self.lockText = 'Note Editing Disabled'",
|
||||||
ng-mouseleave="self.lockText = 'Note Locked'",
|
ng-mouseleave="self.lockText = 'Note Editing Disabled'",
|
||||||
ng-mouseover="self.lockText = 'Unlock'"
|
ng-mouseover="self.lockText = 'Enable Editing'"
|
||||||
)
|
)
|
||||||
.left
|
.left
|
||||||
.sk-app-bar-item(ng-click='self.toggleLockNote()')
|
.sk-app-bar-item(ng-click='self.toggleLockNote()')
|
||||||
@@ -89,8 +89,8 @@
|
|||||||
)
|
)
|
||||||
menu-row(
|
menu-row(
|
||||||
action='self.selectedMenuItem(true); self.toggleLockNote()'
|
action='self.selectedMenuItem(true); self.toggleLockNote()'
|
||||||
desc="'Locking notes prevents unintentional editing'",
|
desc="'Prevent unintentional editing of a note'",
|
||||||
label="self.noteLocked ? 'Unlock' : 'Lock'"
|
label="self.noteLocked ? 'Enable Editing' : 'Prevent Editing'"
|
||||||
)
|
)
|
||||||
menu-row(
|
menu-row(
|
||||||
action='self.selectedMenuItem(true); self.toggleProtectNote()'
|
action='self.selectedMenuItem(true); self.toggleProtectNote()'
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
|
|||||||
}
|
}
|
||||||
if (note.locked) {
|
if (note.locked) {
|
||||||
flags.push({
|
flags.push({
|
||||||
text: "Locked",
|
text: "Editing Disabled",
|
||||||
class: 'neutral'
|
class: 'neutral'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user