Browse Source

fix(nc-gui): shared base view option access nocodb/nocodb/7572

pull/7573/head
Ramesh Mane 10 months ago
parent
commit
8902c4fc9d
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue

4
packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue

@ -162,7 +162,7 @@ const onDelete = async () => {
</div> </div>
</NcTooltip> </NcTooltip>
<NcDivider /> <NcDivider />
<template v-if="!view?.is_default"> <template v-if="!view?.is_default && isUIAllowed('viewCreateOrEdit')">
<NcMenuItem v-if="lockType !== LockType.Locked" @click="onRenameMenuClick"> <NcMenuItem v-if="lockType !== LockType.Locked" @click="onRenameMenuClick">
<GeneralIcon icon="rename" /> <GeneralIcon icon="rename" />
{{ $t('activity.renameView') }} {{ $t('activity.renameView') }}
@ -283,7 +283,7 @@ const onDelete = async () => {
</NcSubMenu> </NcSubMenu>
</template> </template>
<template v-if="!view.is_default"> <template v-if="!view.is_default && isUIAllowed('viewCreateOrEdit')">
<NcDivider /> <NcDivider />
<NcTooltip v-if="lockType === LockType.Locked"> <NcTooltip v-if="lockType === LockType.Locked">
<template #title> {{ $t('msg.info.disabledAsViewLocked') }} </template> <template #title> {{ $t('msg.info.disabledAsViewLocked') }} </template>

Loading…
Cancel
Save