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

@ -28,7 +28,7 @@ export default {
}),
methods: {
...mapMutations(['removeToast', 'createToast', 'closeAddBoxModal', 'openAddBoxModal']),
...mapActions(['loadEvents']),
...mapActions(['loadEvents', 'scheduleAfterInit']),
openAddItemModal() {
this.addItemModalOpen = true;
},
@ -44,6 +44,7 @@ export default {
},
created: function () {
document.title = document.location.hostname;
this.scheduleAfterInit(() => [this.loadEvents()]);
}
};
</script>