Browse Source

fix(gui-v2): fields menu showall/hideall bug

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3139/head
Pranav C 2 years ago
parent
commit
990d6ca1db
  1. 4
      packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue
  2. 1
      packages/nc-gui-v2/composables/useViewColumns.ts

4
packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue

@ -107,11 +107,11 @@ const onMove = (event: { moved: { newIndex: number } }) => {
</a-checkbox>
</div>
<div class="p-2 flex gap-2" @click.stop>
<a-button size="small" class="!text-xs text-gray-500 text-capitalize" @click.stop="showAll">
<a-button size="small" class="!text-xs text-gray-500 text-capitalize" @click.stop="showAll()">
<!-- Show All -->
{{ $t('general.showAll') }}
</a-button>
<a-button size="small" class="!text-xs text-gray-500 text-capitalize" @click.stop="hideAll">
<a-button size="small" class="!text-xs text-gray-500 text-capitalize" @click.stop="hideAll()">
<!-- Hide All -->
{{ $t('general.hideAll') }}
</a-button>

1
packages/nc-gui-v2/composables/useViewColumns.ts

@ -41,7 +41,6 @@ export function useViewColumns(
[curr.fk_column_id]: curr,
}
}, {})
fields.value = meta.value?.columns
?.map((column) => {
const currentColumnField = fieldById[column.id!] || {}

Loading…
Cancel
Save