fix: refresh colors on trash restore

This commit is contained in:
thecodrr
2020-11-21 12:06:25 +05:00
parent 3999f99300
commit ba04c346fc
2 changed files with 3 additions and 1 deletions

View File

@@ -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();
});
};

View File

@@ -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"