|
|
@ -247,9 +247,9 @@ const copyProjectMeta = async () => { |
|
|
|
<a-table-column key="title" :title="$t('general.title')" data-index="title"> |
|
|
|
<a-table-column key="title" :title="$t('general.title')" data-index="title"> |
|
|
|
<template #default="{ text, record }"> |
|
|
|
<template #default="{ text, record }"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div @click.stop> |
|
|
|
<div @click.stop class="w-2"> |
|
|
|
<a-menu class="!border-0 !m-0 !p-0" trigger-sub-menu-action="click"> |
|
|
|
<a-menu class="!border-0 !m-0 !p-0" trigger-sub-menu-action="click"> |
|
|
|
<template v-if="isUIAllowed('projectTheme')"> |
|
|
|
<template v-if="isUIAllowed('projectTheme') || isUIAllowed('projectTheme', true, record.roles)"> |
|
|
|
<a-sub-menu key="theme" popup-class-name="custom-color"> |
|
|
|
<a-sub-menu key="theme" popup-class-name="custom-color"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<div |
|
|
|
<div |
|
|
@ -308,7 +308,7 @@ const copyProjectMeta = async () => { |
|
|
|
<div v-if="record.status !== ProjectStatus.JOB" class="flex items-center gap-2"> |
|
|
|
<div v-if="record.status !== ProjectStatus.JOB" class="flex items-center gap-2"> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="iconMap.edit" |
|
|
|
:is="iconMap.edit" |
|
|
|
v-if="isUIAllowed('projectUpdate', true)" |
|
|
|
v-if="isUIAllowed('projectUpdate', true) || isUIAllowed('projectUpdate', true, record.roles)" |
|
|
|
v-e="['c:project:edit:rename']" |
|
|
|
v-e="['c:project:edit:rename']" |
|
|
|
class="nc-action-btn" |
|
|
|
class="nc-action-btn" |
|
|
|
@click.stop="navigateTo(`/${text}`)" |
|
|
|
@click.stop="navigateTo(`/${text}`)" |
|
|
@ -316,14 +316,14 @@ const copyProjectMeta = async () => { |
|
|
|
|
|
|
|
|
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="iconMap.delete" |
|
|
|
:is="iconMap.delete" |
|
|
|
v-if="isUIAllowed('projectDelete', true)" |
|
|
|
v-if="isUIAllowed('projectDelete', true) || isUIAllowed('projectDelete', true, record.roles)" |
|
|
|
class="nc-action-btn" |
|
|
|
class="nc-action-btn" |
|
|
|
:data-testid="`delete-project-${record.title}`" |
|
|
|
:data-testid="`delete-project-${record.title}`" |
|
|
|
@click.stop="deleteProject(record)" |
|
|
|
@click.stop="deleteProject(record)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<a-dropdown |
|
|
|
<a-dropdown |
|
|
|
v-if="isUIAllowed('duplicateProject', true)" |
|
|
|
v-if="isUIAllowed('duplicateProject', true) || isUIAllowed('duplicateProject', true, record.roles)" |
|
|
|
:trigger="['click']" |
|
|
|
:trigger="['click']" |
|
|
|
overlay-class-name="nc-dropdown-import-menu" |
|
|
|
overlay-class-name="nc-dropdown-import-menu" |
|
|
|
@click.stop |
|
|
|
@click.stop |
|
|
|