Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: locked note not deleting

thecodrrbd5c7eab9a5d
diff --git a/apps/web/src/common/multi-select.ts b/apps/web/src/common/multi-select.ts
index ad5841f2b..b19be826c 100644
--- a/apps/web/src/common/multi-select.ts
+++ b/apps/web/src/common/multi-select.ts
@@ -8,8 +8,6 @@ import { showItemDeletedToast } from "./toasts";
import { TaskManager } from "./task-manager";
async function moveNotesToTrash(notes: any[]) {
- console.log(notes);
-
const item = notes[0];
const isMultiselect = notes.length > 1;
if (isMultiselect) {
@@ -20,6 +18,7 @@ async function moveNotesToTrash(notes: any[]) {
!(await Vault.unlockNote(item.id, "unlock_and_delete_note"))
)
return;
+ item.locked = false;
}
const items = notes.map((item) => {
diff --git a/apps/web/src/components/route-container/index.js b/apps/web/src/components/route-container/index.js
index 5db390c1e..4949f656e 100644
--- a/apps/web/src/components/route-container/index.js
+++ b/apps/web/src/components/route-container/index.js
@@ -51,7 +51,7 @@ function Header(props) {
size={24}
title={buttons.back.title}
onClick={buttons.back.action}
- sx={{ flexShrink: 0, mr: 2 }}
+ sx={{ flexShrink: 0, mr: 2, cursor: "pointer" }}
color="text"
data-test-id="go-back"
/>