Fix record list configurable columns not resetting when turned off
This commit is contained in:
parent
ac547ef868
commit
0ce6683274
@ -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: [],
|
||||
}
|
||||
},
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
<field-picker
|
||||
:module="recordListModule"
|
||||
:fields.sync="options.fields"
|
||||
class="mb-2"
|
||||
class="mb-3"
|
||||
style="height: 40vh;"
|
||||
/>
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
/>
|
||||
|
||||
@ -66,6 +66,7 @@
|
||||
style="min-width: 80px; width: 80px;"
|
||||
>
|
||||
<c-input-confirm
|
||||
show-icon
|
||||
@confirmed="items.splice(index, 1)"
|
||||
/>
|
||||
</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user