Skip to content

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

ui: fix lock indicator not updated when locked state changes

thecodrrc7a399e06c40
diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.js
index 8dffe6ced..85380664e 100644
--- a/apps/web/src/stores/note-store.js
+++ b/apps/web/src/stores/note-store.js
@@ -69,7 +69,6 @@ class NoteStore extends BaseStore {
favorite = async (note) => {
await db.notes.note(note).favorite();
- this.refreshContext.defer();
this._setValue(note.id, "favorite", !note.favorite);
};
@@ -94,6 +93,7 @@ class NoteStore extends BaseStore {
arr[index][prop] = value;
this._syncEditor(noteId, prop);
});
+ this.refresh.defer();
};
/**
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 4073da950..85d674ab4 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -6583,7 +6583,7 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"
[email protected], libsodium-wrappers@^0.7.6:
version "0.7.6"
resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.6.tgz#baed4c16d4bf9610104875ad8a8e164d259d48fb"
integrity sha512-OUO2CWW5bHdLr6hkKLHIKI4raEkZrf3QHkhXsJ1yCh6MZ3JDA7jFD3kCATNquuGSG6MjjPHQIQms0y0gBDzjQg==
@@ -7253,11 +7253,10 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
version "1.3.0"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#51209ca353908393e54e810382c940eb158849fc"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#9d45d4a13f74ceb5221a38425663a285561307c4"
dependencies:
fast-sort "^2.0.1"
fuzzysearch "^1.0.3"
- libsodium-wrappers "^0.7.6"
qclone "^1.0.4"
transfun "^1.0.2"