mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
fixed frontend for new module api endpoint and fixed distinct database request
This commit is contained in:
@@ -30,7 +30,7 @@ async function nextStep() {
|
||||
await router.push("/rename-modules");
|
||||
}
|
||||
|
||||
const display = (module: Module) => module.Name + " (" + module.Course + ")";
|
||||
const display = (module: Module) => module.name + " (" + module.course + ")";
|
||||
|
||||
const selectAll = ref(false);
|
||||
|
||||
|
@@ -7,7 +7,7 @@ import { ref } from "vue";
|
||||
|
||||
const tableData = ref(moduleStore().modules.map((module) => {
|
||||
return {
|
||||
Course: module.Course,
|
||||
Course: module.course,
|
||||
Module: module,
|
||||
}
|
||||
})
|
||||
@@ -36,14 +36,14 @@ async function finalStep() {
|
||||
<DataTable :value="tableData" editMode="cell" tableClass="editable-cells-table" responsiveLayout="scroll">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header">
|
||||
<template #body="{ data, field }" >
|
||||
<div>{{ field === 'Module' ? data[field].UserDefinedName : data[field] }}</div>
|
||||
<div>{{ field === 'Module' ? data[field].userDefinedName : data[field] }}</div>
|
||||
</template>
|
||||
<template #editor="{ data, field }">
|
||||
<template v-if="field !== 'Module'">
|
||||
<div>{{ data[field] }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<InputText class="w-full" v-model="data[field].UserDefinedName" autofocus />
|
||||
<InputText class="w-full" v-model="data[field].userDefinedName" autofocus />
|
||||
</template>
|
||||
</template>
|
||||
</Column>
|
||||
|
Reference in New Issue
Block a user