Browse Source

fix: disable share view option for main view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/653/head
Pranav C 3 years ago
parent
commit
27e199fd8f
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue
  2. 2
      packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

4
packages/nc-gui/components/project/spreadsheet/components/sharedViewsList.vue

@ -18,8 +18,8 @@
<tbody>
<tr v-for="link of viewsList" :key="link.id">
<td class="caption">
<nuxt-link :to="`/nc/${link.view_type || 'view'}/${link.view_id}`">
{{ `${dashboardUrl}#/nc/${link.view_type || 'view'}/${link.view_id}` }}
<nuxt-link :to="`/nc/${link.view_type === 'form' ? 'form' : 'view'}/${link.view_id}`">
{{ `${dashboardUrl}#/nc/${link.view_type === 'form' ? 'form' : 'view'}/${link.view_id}` }}
</nuxt-link>
</td>
<td class="caption">

2
packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

@ -355,7 +355,7 @@
<v-list-item
v-show="
selectedView && (selectedView.show_as === 'form' || selectedView.type === 'view' || selectedView.type === 'table')
selectedView && selectedView.show_as === 'form'
"
v-if="_isUIAllowed('shareview')"
@click="genShareLink"

Loading…
Cancel
Save