Reworked workspaces store

This commit is contained in:
Julien Nahum
2023-12-19 18:57:31 +01:00
parent aac4d1da04
commit 5640f43b9d
17 changed files with 210 additions and 282 deletions

View File

@@ -13,7 +13,7 @@
</div>
</section>
<templates-list :templates="templates"/>
<templates-list :templates="templates" :loading="loading"/>
<open-form-footer class="mt-8 border-t"/>
</div>
@@ -30,5 +30,6 @@ import {loadAllTemplates} from "~/stores/templates.js";
const templatesStore = useTemplatesStore()
loadAllTemplates(templatesStore)
const loading = computed(() => templatesStore.loading)
const templates = computed(() => templatesStore.getAll)
</script>