add shared-state-plugin

This commit is contained in:
j3d1 2024-06-23 01:04:32 +02:00
parent e91b64ca97
commit 67375bd281
7 changed files with 455 additions and 24 deletions

View file

@ -93,7 +93,7 @@ export default {
...mapGetters(['layout']),
},
methods: {
...mapActions(['deleteItem', 'markItemReturned', 'loadEventItems', 'updateItem']),
...mapActions(['deleteItem', 'markItemReturned', 'loadEventItems', 'updateItem', 'scheduleAfterInit']),
openLightboxModalWith(item) {
this.lightboxHash = item.file;
},
@ -115,7 +115,7 @@ export default {
}
},
mounted() {
this.loadEventItems();
this.scheduleAfterInit(() => [this.loadEventItems()]);
}
};
</script>