48 fix missing names in calendar module editor

This commit is contained in:
survellow
2023-11-07 23:23:09 +01:00
parent fafdd96d89
commit 065dd54478
3 changed files with 23 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import { saveIndividualFeed } from "../../api/createFeed";
import tokenStore from "../../store/tokenStore";
import router from "../../router";
import ModuleTemplateDialog from "../ModuleTemplateDialog.vue";
import { onlyWhitespace } from "../../helpers/strings.ts";
const tableData = computed(() =>
moduleStore().modules.map((module: Module) => {
@@ -89,7 +90,11 @@ async function finalStep() {
<!-- Text Body -->
<template #body="{ data, field }">
<template v-if="field === 'Module'">
{{ data[field].userDefinedName }}
{{
onlyWhitespace(data[field].userDefinedName) ?
data[field].name :
data[field].userDefinedName
}}
</template>
<template v-else-if="field === 'Reminder'">
<Button
@@ -124,6 +129,9 @@ async function finalStep() {
@click="data.Module.reminder = !data.Module.reminder"
></Button>
</template>
<template v-else>
{{ data[field] }}
</template>
</template>
</Column>
<Column>