mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-16 20:44:19 +01:00
115 refactoring dynamic page
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import { computed, ComputedRef, PropType } from "vue";
|
||||
import { Module } from "../model/module.ts";
|
||||
import moduleStore from "../store/moduleStore";
|
||||
import router from "../router";
|
||||
|
||||
const store = moduleStore();
|
||||
const props = defineProps({
|
||||
@@ -40,21 +39,10 @@ function toggleModule(module: Module) {
|
||||
store.addModule(module);
|
||||
}
|
||||
}
|
||||
|
||||
function nextStep() {
|
||||
router.push("/additional-modules");
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-column w-full">
|
||||
<Button
|
||||
:disabled="store.isEmpty()"
|
||||
class="col-12 md:col-4 mb-3 align-self-end"
|
||||
@click="nextStep()"
|
||||
icon="pi pi-arrow-right"
|
||||
:label="$t('moduleSelection.nextStep')"
|
||||
/>
|
||||
<DataView
|
||||
:value="modules"
|
||||
data-key="uuid"
|
||||
|
||||
Reference in New Issue
Block a user