15 demo of global dialog with reactive state

This commit is contained in:
survellow
2023-11-06 16:16:05 +01:00
parent fafdd96d89
commit 3819b03065
11 changed files with 130 additions and 31 deletions

View File

@@ -8,8 +8,9 @@ import tokenStore from "../../store/tokenStore";
import router from "../../router";
import ModuleTemplateDialog from "../ModuleTemplateDialog.vue";
const store = moduleStore();
const tableData = computed(() =>
moduleStore().modules.map((module: Module) => {
store.getAllModules().map((module: Module) => {
return {
Course: module.course,
Module: module,
@@ -42,7 +43,7 @@ fetchedModules().then(
);
async function finalStep() {
await saveIndividualFeed(tokenStore().token, moduleStore().modules);
await saveIndividualFeed(tokenStore().token, store.getAllModules());
await router.push("/calendar-link");
}
</script>
@@ -150,9 +151,4 @@ async function finalStep() {
</template>
<style scoped>
.small-button.p-button {
width: 2rem;
height: 2rem;
padding: 0;
}
</style>