Dateityp-Belegarten in Listen anzeigen
This commit is contained in:
@@ -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",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user