Browse Source

fix: Hide delete view btn for default view

pull/6888/head
Muhammed Mustafa 1 year ago
parent
commit
a59a6f5c63
  1. 20
      packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue

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

@ -237,15 +237,17 @@ const onDelete = async () => {
<LazySmartsheetToolbarLockType :type="LockType.Locked" @click="changeLockType(LockType.Locked)" /> <LazySmartsheetToolbarLockType :type="LockType.Locked" @click="changeLockType(LockType.Locked)" />
</a-menu-item> </a-menu-item>
</NcSubMenu> </NcSubMenu>
<NcDivider /> <template v-if="!view.is_default">
<NcMenuItem class="!hover:bg-red-50 !text-red-500" @click="onDelete"> <NcDivider />
<GeneralIcon icon="delete" /> <NcMenuItem class="!hover:bg-red-50 !text-red-500" @click="onDelete">
{{ <GeneralIcon icon="delete" />
$t('general.deleteEntity', { {{
entity: $t('objects.view'), $t('general.deleteEntity', {
}) entity: $t('objects.view'),
}} })
</NcMenuItem> }}
</NcMenuItem>
</template>
<template v-if="currentBaseId"> <template v-if="currentBaseId">
<LazyDlgQuickImport <LazyDlgQuickImport
v-for="tp in quickImportDialogTypes" v-for="tp in quickImportDialogTypes"

Loading…
Cancel
Save