mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 12:41:45 +02:00
fix: refresh colors on trash restore
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { db } from "../common/index";
|
||||
import createStore from "../common/store";
|
||||
import BaseStore from "./index";
|
||||
import { store as appStore } from "./app-store";
|
||||
|
||||
class TrashStore extends BaseStore {
|
||||
trash = [];
|
||||
@@ -21,6 +22,7 @@ class TrashStore extends BaseStore {
|
||||
restore = (id, index) => {
|
||||
return db.trash.restore(id).then(() => {
|
||||
this.set((state) => state.trash.splice(index, 1));
|
||||
appStore.refreshColors();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -8954,7 +8954,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
|
||||
|
||||
"notes-core@git+ssh://git@github.com:streetwriters/notesnook-core.git":
|
||||
version "2.3.5"
|
||||
resolved "git+ssh://git@github.com:streetwriters/notesnook-core.git#6a6fff1455647bcf14ea7641beab95fc6a906c82"
|
||||
resolved "git+ssh://git@github.com:streetwriters/notesnook-core.git#8235c1fec8632a35965116fb9bd01a5a3f33fe8b"
|
||||
dependencies:
|
||||
fast-sort "^2.0.1"
|
||||
fuzzysearch "^1.0.3"
|
||||
|
||||
Reference in New Issue
Block a user