Browse Source

fix: hide/show based on latest column list

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/914/head
Pranav C 3 years ago
parent
commit
7e089aa245
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/fieldsMenu.vue

4
packages/nc-gui/components/project/spreadsheet/components/fieldsMenu.vue

@ -264,11 +264,11 @@ export default {
methods: { methods: {
showAll() { showAll() {
// eslint-disable-next-line no-return-assign,no-sequences // eslint-disable-next-line no-return-assign,no-sequences
this.showFields = Object.keys(this.showFields).reduce((o, k) => (o[k] = true, o), {}) this.showFields = (this.fieldsOrderLoc || Object.keys(this.showFields)).reduce((o, k) => (o[k] = true, o), {})
}, },
hideAll() { hideAll() {
// eslint-disable-next-line no-return-assign,no-sequences // eslint-disable-next-line no-return-assign,no-sequences
this.showFields = Object.keys(this.showFields).reduce((o, k) => (o[k] = false, o), {}) this.showFields = (this.fieldsOrderLoc || Object.keys(this.showFields)).reduce((o, k) => (o[k] = false, o), {})
} }
} }
} }

Loading…
Cancel
Save