Browse Source

fix(gui-v2): add isUIAllowed for renaming view in sidebar

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

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

@ -143,7 +143,11 @@ function onStopEdit() {
</script>
<template>
<a-menu-item class="select-none group !flex !items-center !my-0" @dblclick.stop="onDblClick" @click.stop="onClick">
<a-menu-item
class="select-none group !flex !items-center !my-0"
@dblclick.stop="isUIAllowed('virtualViewsCreateOrEdit') && onDblClick"
@click.stop="onClick"
>
<div v-t="['a:view:open', { view: vModel.type }]" class="text-xs flex items-center w-full gap-2">
<div class="flex w-auto">
<MdiDrag

Loading…
Cancel
Save