Browse Source

fix(gui-v2): add isUIAllowed to sidebar toolbar

pull/3087/head
Wing-Kam Wong 2 years ago
parent
commit
25067ee562
  1. 6
      packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue

6
packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue

@ -2,13 +2,15 @@
import AddRow from './AddRow.vue'
import LockMenu from './LockMenu.vue'
import Reload from './Reload.vue'
const { isUIAllowed } = useUIPermission()
</script>
<template>
<div class="flex gap-2">
<slot name="start" />
<LockMenu />
<LockMenu v-if="isUIAllowed('view-type')" />
<div class="dot" />
@ -16,7 +18,7 @@ import Reload from './Reload.vue'
<div class="dot" />
<AddRow />
<AddRow v-if="isUIAllowed('xcDatatableEditable')" />
<slot name="end" />
</div>

Loading…
Cancel
Save