Browse Source

fix(gui-v2): hide share view from gallery

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
f335d3d418
  1. 1
      packages/nc-gui-v2/app.vue
  2. 9
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue

1
packages/nc-gui-v2/app.vue

@ -35,7 +35,6 @@ const toggleSidebar = () => {
<img width="35" src="~/assets/img/icons/512x512-trans.png" /> <img width="35" src="~/assets/img/icons/512x512-trans.png" />
<span class="prose-xl">NocoDB</span> <span class="prose-xl">NocoDB</span>
</div> </div>
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">

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

@ -1,3 +1,10 @@
<script setup lang="ts">
import { IsFormInj, IsGridInj } from '~/context'
const isForm = inject(IsFormInj)
const isGrid = inject(IsGridInj)
</script>
<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 class="flex-shrink" />
@ -8,7 +15,7 @@
<SmartsheetToolbarSortListMenu /> <SmartsheetToolbarSortListMenu />
<SmartsheetToolbarShareView /> <SmartsheetToolbarShareView v-if="isForm || isGrid" />
<SmartsheetToolbarMoreActions /> <SmartsheetToolbarMoreActions />

Loading…
Cancel
Save