3
0

Fix record list configurable columns not resetting when turned off

This commit is contained in:
Jože Fortun 2023-11-08 14:06:29 +01:00
parent ac547ef868
commit 0ce6683274
7 changed files with 10 additions and 5 deletions

View File

@ -1,16 +1,17 @@
<template>
<div class="d-flex">
<b-button
v-b-modal.columns
size="lg"
variant="light"
class="flex-fill"
@click="showModal = true"
>
{{ $t('allRecords.columns.title') }}
</b-button>
<b-modal
id="columns"
v-model="showModal"
size="lg"
scrollable
:ok-title="$t('general.label.saveAndClose')"
@ -68,6 +69,8 @@ export default {
data () {
return {
showModal: false,
filteredFields: [],
}
},

View File

@ -129,7 +129,6 @@
:processing="processingSubmit"
:text="labels.submit || $t('label.save')"
size="lg"
style="min-height: 42px; min-width: 73px;"
@submit="$emit('submit')"
/>
</template>

View File

@ -961,7 +961,7 @@ export default {
? []
: this.options.editFields.map(({ name }) => name)
if (this.customConfiguredFields.length > 0) {
if (!this.options.hideConfigureFieldsButton && this.customConfiguredFields.length > 0) {
fields = this.recordListModule.filterFields(this.customConfiguredFields)
} else if (this.options.fields.length > 0) {
fields = this.recordListModule.filterFields(this.options.fields)

View File

@ -83,7 +83,7 @@
<field-picker
:module="recordListModule"
:fields.sync="options.fields"
class="mb-2"
class="mb-3"
style="height: 40vh;"
/>

View File

@ -430,6 +430,8 @@ export default {
if (this.showRecordModal) {
this.popModalPreviousPage().then(({ recordID, recordPageID }) => {
this.$emit('on-modal-back', { recordID, recordPageID, pushModalPreviousPage: false })
this.inCreating = recordID === NoID
this.inEditing = false
})
return

View File

@ -20,7 +20,7 @@
<slot v-else>
<template v-if="!$slots.default">
<font-awesome-icon
v-if="showIcon"
v-if="showIcon || !text"
:icon="icon"
:class="iconClass"
/>

View File

@ -66,6 +66,7 @@
style="min-width: 80px; width: 80px;"
>
<c-input-confirm
show-icon
@confirmed="items.splice(index, 1)"
/>
</td>