New CustomerInventory,
New Mitgliederverwaltung für Vereine New Bank Auto Complete
This commit is contained in:
@@ -21,13 +21,20 @@ const props = defineProps({
|
||||
const dataStore = useDataStore()
|
||||
|
||||
const dataType = dataStore.dataTypes[props.topLevelType]
|
||||
const historyType = computed(() => {
|
||||
const holder = dataType?.historyItemHolder
|
||||
if (!holder) return props.topLevelType
|
||||
|
||||
const normalized = String(holder).toLowerCase()
|
||||
return normalized.endsWith("s") ? normalized : `${normalized}s`
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UCard class="mt-5 scroll" :style="props.platform !== 'mobile' ? 'height: 80vh' : ''">
|
||||
<HistoryDisplay
|
||||
:type="props.topLevelType"
|
||||
:type="historyType"
|
||||
v-if="props.item.id"
|
||||
:element-id="props.item.id"
|
||||
render-headline
|
||||
@@ -39,4 +46,4 @@ const dataType = dataStore.dataTypes[props.topLevelType]
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user