Browse Source

fix(gui-v2): add isUIAllowed('share-view')

pull/3087/head
Wing-Kam Wong 2 years ago
parent
commit
e688160b5d
  1. 4
      packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue

4
packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue

@ -17,6 +17,8 @@ const { $e } = useNuxtApp()
const { dashboardUrl } = useDashboard()
const { isUIAllowed } = useUIPermission()
let showShareModel = $ref(false)
const passwordProtected = $ref(false)
@ -110,7 +112,7 @@ const copyLink = () => {
<template>
<div>
<a-button v-t="['c:view:share']" outlined class="nc-btn-share-view nc-toolbar-btn">
<a-button v-if="isUIAllowed('share-view')" v-t="['c:view:share']" outlined class="nc-btn-share-view nc-toolbar-btn">
<div class="flex align-center gap-1" @click="genShareLink">
<MdiOpenInNewIcon />
<!-- Share View -->

Loading…
Cancel
Save