refactor: stop using safeContent

This commit is contained in:
Radek Czemerys
2020-10-05 00:03:10 +02:00
parent 889b440730
commit fb9e1f79cf
2 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ export const Root = (props: Props): JSX.Element | null => {
}
}
if (
note.safeContent.protected &&
note.protected &&
(await application?.privilegesService!.actionRequiresPrivilege(
ProtectedAction.ViewProtectedNotes
))

View File

@@ -491,7 +491,7 @@ export const NoteSideMenu = (props: Props) => {
{ text: 'Share', onSelect: shareNote, icon: ICON_SHARE },
];
if (!note.safeContent.trashed) {
if (!note.trashed) {
rawOptions.push({
text: 'Move to Trash',
onSelect: async () => deleteNote(false),
@@ -510,7 +510,7 @@ export const NoteSideMenu = (props: Props) => {
onSelect: rawOption.onSelect,
}));
if (note.safeContent.trashed) {
if (note.trashed) {
options = options.concat([
{
text: 'Restore',