fix(front): remove faulty attributes to enable editing tags #2448 #2390

This commit is contained in:
Flupsi 2025-06-05 18:35:55 +02:00
parent 703ede9ba5
commit 5351ef0172
1 changed files with 2 additions and 3 deletions

View File

@ -303,17 +303,16 @@ const resetField = (fieldId: string) => {
</attachment-input> </attachment-input>
</template> </template>
<template v-else-if="fieldConfig.type === 'tags'"> <template v-else-if="fieldConfig.type === 'tags'">
<!-- TODO: Make Tags work -->
<Pills <Pills
:id="fieldConfig.id" :id="fieldConfig.id"
ref="tags"
:get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }" :get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }"
:set="model => ({ :set="model => ({
...model, ...model,
others: [],
currents: (values[fieldConfig.id] as string[]).map(tag => ({ type: 'custom' as const, label: tag })), currents: (values[fieldConfig.id] as string[]).map(tag => ({ type: 'custom' as const, label: tag })),
})" })"
:label="fieldConfig.label" :label="fieldConfig.label"
required="fieldConfig.required" :required="fieldConfig.required"
> >
<Button <Button
icon="bi-x" icon="bi-x"