Dateityp-Belegarten in Listen anzeigen

This commit is contained in:
2026-05-19 15:20:38 +02:00
parent 24febf4c95
commit 1ccabbedcd
3 changed files with 28 additions and 5 deletions

View File

@@ -87,6 +87,10 @@ export const useDataStore = defineStore('data', () => {
{ key: "reminders", label: "Mahnung" },
]
const getFiletagDocumentTypeLabel = (options, value) => {
return options.find((option) => option.key === value)?.label || value
}
const dataTypes = {
tasks: {
isArchivable: true,
@@ -2397,6 +2401,9 @@ export const useDataStore = defineStore('data', () => {
selectValueAttribute: "key",
selectOptionAttribute: "label",
selectManualOptions: filetagCreatedDocumentTypeOptions,
displayFunction: function (value) {
return getFiletagDocumentTypeLabel(filetagCreatedDocumentTypeOptions, value)
},
inputColumn: "Automatik",
},
{
@@ -2406,6 +2413,9 @@ export const useDataStore = defineStore('data', () => {
selectValueAttribute: "key",
selectOptionAttribute: "label",
selectManualOptions: filetagIncomingDocumentTypeOptions,
displayFunction: function (value) {
return getFiletagDocumentTypeLabel(filetagIncomingDocumentTypeOptions, value)
},
inputColumn: "Automatik",
},
{