3
0

Add name to all column selector labels in reporter and make the selectors searchable

This commit is contained in:
Jože Fortun
2022-12-19 18:40:39 +01:00
parent e9efe5d3a9
commit 0a243ad3b7
9 changed files with 153 additions and 139 deletions

View File

@@ -26,7 +26,7 @@
>
<b-form-select
v-model="column.field"
:options="fields"
:options="availableFields"
text-field="label"
value-field="name"
class="rounded"
@@ -161,8 +161,8 @@ export default {
]
},
sortedFields () {
return [...this.fields.sort((a, b) => a.label.localeCompare(b.label))]
availableFields () {
return this.fields.map(f => ({ ...f,label: `${f.label} (${f.name})` }))
}
},