Browse Source

search added in shared view

pull/7293/head
Aashish Agrawal 11 months ago
parent
commit
419a9acf48
  1. 2
      packages/nc-gui/components/smartsheet/Toolbar.vue
  2. 2
      packages/nc-gui/composables/useViewData.ts

2
packages/nc-gui/components/smartsheet/Toolbar.vue

@ -52,7 +52,7 @@ const { allowCSVDownload } = useSharedView()
</template> </template>
<LazySmartsheetToolbarSearchData <LazySmartsheetToolbarSearchData
v-if="(isGrid || isGallery || isKanban) && !isPublic" v-if="isGrid || isGallery || isKanban"
:class="{ :class="{
'shrink': !isMobileMode, 'shrink': !isMobileMode,
'w-full': isMobileMode, 'w-full': isMobileMode,

2
packages/nc-gui/composables/useViewData.ts

@ -205,7 +205,7 @@ export function useViewData(
} as any, } as any,
{ cancelToken: controller.value.token }, { cancelToken: controller.value.token },
) )
: await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: nestedFilters.value }) : await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: nestedFilters.value, where: where?.value })
} catch (error) { } catch (error) {
// if the request is canceled, then do nothing // if the request is canceled, then do nothing
if (error.code === 'ERR_CANCELED') { if (error.code === 'ERR_CANCELED') {

Loading…
Cancel
Save