Browse Source

fix: context menu

pull/6384/head
sreehari jayaraj 1 year ago
parent
commit
4ec28d4f30
  1. 15
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

15
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -530,13 +530,6 @@ const DlgProjectDuplicateOnOk = async (jobData: { id: string; project_id: string
<GeneralIcon icon="settings" class="group-hover:text-black" />
{{ $t('activity.settings') }}
</NcMenuItem>
<template v-if="project.bases && project.bases[0]">
<NcDivider />
<!-- Import Data -->
<DashboardTreeViewBaseOptions v-model:project="project" :base="project.bases[0]" />
<NcDivider />
</template>
<!-- Delete -->
<NcMenuItem
v-if="isUIAllowed('projectDelete', { roles: [stringifyRolesObj(orgRoles), projectRole].join() })"
data-testid="nc-sidebar-project-delete"
@ -726,6 +719,14 @@ const DlgProjectDuplicateOnOk = async (jobData: { id: string; project_id: string
</div>
</NcMenuItem>
</template>
<template v-else>
<NcMenuItem @click="reloadTables">
<div class="nc-project-option-item">
{{ $t('general.reload') }}
</div>
</NcMenuItem>
</template>
</NcMenu>
</template>
</NcDropdown>

Loading…
Cancel
Save