forked from mirrors/homebox
fix: conditionally filter parent locations (#133)
This commit is contained in:
parent
fbcbde836a
commit
8e1947d971
18 changed files with 135 additions and 67 deletions
|
@ -32,7 +32,8 @@
|
|||
const rmLocationStoreObserver = defineObserver("locationStore", {
|
||||
handler: r => {
|
||||
if (r.status === 201 || r.url.match(reLocation)) {
|
||||
locationStore.refresh();
|
||||
locationStore.refreshChildren();
|
||||
locationStore.refreshParents();
|
||||
}
|
||||
console.debug("locationStore handler called by observer");
|
||||
},
|
||||
|
@ -43,7 +44,8 @@
|
|||
EventTypes.ClearStores,
|
||||
() => {
|
||||
labelStore.refresh();
|
||||
locationStore.refresh();
|
||||
locationStore.refreshChildren();
|
||||
locationStore.refreshParents();
|
||||
},
|
||||
"stores"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue