Browse Source

fix(nc-gui): keep old fields menu dropdown footer

pull/8188/head
Ramesh Mane 8 months ago
parent
commit
d7736fd06a
  1. 24
      packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

24
packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

@ -503,23 +503,23 @@ useMenuCloseOnEsc(open)
</Draggable> </Draggable>
</div> </div>
</div> </div>
<div v-if="!filterQuery" class="flex items-center justify-between gap-2 px-2 pt-2 border-t-1 border-gray-200"> <div v-if="!filterQuery" class="flex px-2 gap-2 pt-2 border-t-1 border-gray-200">
<div
v-if="!isPublic"
class="flex items-center gap-2 text-black-100 cursor-pointer select-none"
@click.stop="showSystemField = !showSystemField"
>
<NcSwitch :checked="showSystemField" class="nc-fields-show-system-fields" />
{{ $t('activity.showSystemFields') }}
</div>
<NcButton <NcButton
class="nc-fields-show-all-fields !text-black-100" class="nc-fields-show-all-fields !text-gray-500 !w-1/2"
size="small" size="small"
type="ghost" type="ghost"
@click="showAllColumns = !showAllColumns" @click="showAllColumns = !showAllColumns"
> >
{{ showAllColumns ? $t('title.hideAll') : $t('general.showAll') }} {{ showAllColumns ? 'Hide all' : 'Show all' }} fields
</NcButton>
<NcButton
v-if="!isPublic"
class="nc-fields-show-system-fields !text-gray-500 !w-1/2"
size="small"
type="ghost"
@click="showSystemField = !showSystemField"
>
{{ showSystemField ? 'Hide system fields' : 'Show system fields' }}
</NcButton> </NcButton>
</div> </div>
</div> </div>

Loading…
Cancel
Save