Browse Source

fix(gui-v2): toolbar should have only Share view button

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
c7168bfbc6
  1. 10
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue

10
packages/nc-gui-v2/components/smartsheet/Toolbar.vue

@ -6,17 +6,17 @@ const { isGrid, isForm } = useSmartsheetStoreOrThrow()
<template> <template>
<div class="nc-table-toolbar w-full py-1 flex gap-1 items-center" style="z-index: 7"> <div class="nc-table-toolbar w-full py-1 flex gap-1 items-center" style="z-index: 7">
<SmartsheetToolbarSearchData class="flex-shrink" /> <SmartsheetToolbarSearchData v-if="isGrid" class="flex-shrink" />
<SmartsheetToolbarFieldsMenu :show-system-fields="false" /> <SmartsheetToolbarFieldsMenu v-if="isGrid" :show-system-fields="false" />
<SmartsheetToolbarColumnFilterMenu /> <SmartsheetToolbarColumnFilterMenu v-if="isGrid" />
<SmartsheetToolbarSortListMenu /> <SmartsheetToolbarSortListMenu v-if="isGrid" />
<SmartsheetToolbarShareView v-if="isForm || isGrid" /> <SmartsheetToolbarShareView v-if="isForm || isGrid" />
<SmartsheetToolbarMoreActions /> <SmartsheetToolbarMoreActions v-if="isGrid" />
<div class="flex-1" /> <div class="flex-1" />
</div> </div>

Loading…
Cancel
Save