mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +02:00
15 demo of global dialog with reactive state
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user