3
0

Show record field options on record block if no fields selected but record field exists

This commit is contained in:
Jože Fortun
2024-10-25 15:32:42 +02:00
parent 536bac00e3
commit d1ce86aa7a

View File

@@ -118,7 +118,7 @@
</b-row>
<b-row
v-if="isRecordConfigured"
v-if="isRecordFieldUsedConfigured"
class="mt-3"
>
<b-col
@@ -342,8 +342,12 @@ export default {
},
},
isRecordConfigured () {
return this.options.fields.some(f => f.kind === 'Record')
isRecordFieldUsedConfigured () {
if (this.options.fields.length === 0) {
return this.module.fields.some(f => f.kind === 'Record')
} else {
return this.options.fields.some(f => f.kind === 'Record')
}
},
},