Browse Source

fix(gui-v2): add isUIAllowed for view actions

pull/3087/head
Wing-Kam Wong 2 years ago
parent
commit
ba24bf6ad4
  1. 4
      packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue

4
packages/nc-gui-v2/components/smartsheet/sidebar/RenameableMenuItem.vue

@ -25,6 +25,8 @@ const vModel = useVModel(props, 'view', emits)
const { $e } = useNuxtApp()
const { isUIAllowed } = useUIPermission()
/** Is editing the view name enabled */
let isEditing = $ref<boolean>(false)
@ -161,7 +163,7 @@ function onStopEdit() {
<div class="flex-1" />
<template v-if="!isEditing">
<template v-if="!isEditing && isUIAllowed('virtualViewsCreateOrEdit')">
<div class="flex items-center gap-1">
<a-tooltip placement="left">
<template #title>

Loading…
Cancel
Save