mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-16 19:42:26 +01:00
feat:#21 updated deps, fixed changes, fixed room list
This commit is contained in:
@@ -29,7 +29,6 @@ function toggleAllModules(){
|
||||
} else {
|
||||
store.overwriteModules(props.modules);
|
||||
}
|
||||
console.debug(props.modules);
|
||||
}
|
||||
|
||||
function toggleModule(module: Module) {
|
||||
@@ -76,19 +75,21 @@ function toggleModule(module: Module) {
|
||||
</p>
|
||||
</template>
|
||||
<template #list="slotProps">
|
||||
<div class="col-12">
|
||||
<div class="grid grid-nogutter">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12">
|
||||
<div class="flex flex-column sm:flex-row justify-content-between align-items-center flex-1 column-gap-4 mx-2 md:mx-4">
|
||||
<p class="text-lg flex-1 align-self-stretch">{{ slotProps.data.name }}</p>
|
||||
<p class="text-lg flex-1 align-self-stretch">{{ item.name }}</p>
|
||||
<ToggleButton
|
||||
class="w-9rem align-self-end my-2"
|
||||
off-icon="pi pi-times"
|
||||
:off-label="$t('moduleSelection.unselected')"
|
||||
on-icon="pi pi-check"
|
||||
:on-label="$t('moduleSelection.selected')"
|
||||
:model-value="store.hasModule(slotProps.data)"
|
||||
@update:model-value="toggleModule(slotProps.data)"
|
||||
:model-value="store.hasModule(item)"
|
||||
@update:model-value="toggleModule(item)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</DataView>
|
||||
|
||||
Reference in New Issue
Block a user