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

@@ -6,8 +6,9 @@ import tokenStore from "../store/tokenStore.ts";
import { ref } from "vue";
import ModuleTemplateDialog from "./ModuleTemplateDialog.vue";
const store = moduleStore();
const tableData = ref(
moduleStore().modules.map((module) => {
store.getAllModules().map((module) => {
return {
Course: module.course,
Module: module,
@@ -22,7 +23,7 @@ const columns = ref([
]);
async function finalStep() {
const token: string = await createIndividualFeed(moduleStore().modules);
const token: string = await createIndividualFeed(store.getAllModules());
tokenStore().setToken(token);
await router.push("/calendar-link");
}
@@ -122,9 +123,4 @@ async function finalStep() {
</template>
<style scoped>
.small-button.p-button {
width: 2rem;
height: 2rem;
padding: 0;
}
</style>