diff --git a/src/pages/workspaces/containers/DevOps/index.jsx b/src/pages/workspaces/containers/DevOps/index.jsx index de1bb6084ae..a330917f280 100644 --- a/src/pages/workspaces/containers/DevOps/index.jsx +++ b/src/pages/workspaces/containers/DevOps/index.jsx @@ -45,7 +45,6 @@ export default class DevOps extends React.Component { key: 'edit', icon: 'pen', text: t('Edit'), - action: 'edit', onClick: item => trigger('devops.edit', { detail: item, success: this.getData }), }, @@ -53,7 +52,6 @@ export default class DevOps extends React.Component { key: 'delete', icon: 'trash', text: t('Delete'), - action: 'delete', onClick: item => trigger('resource.delete', { type: t('DevOps Project'), diff --git a/src/pages/workspaces/containers/Projects/index.jsx b/src/pages/workspaces/containers/Projects/index.jsx index e2e0d8e3d15..e68755f9430 100644 --- a/src/pages/workspaces/containers/Projects/index.jsx +++ b/src/pages/workspaces/containers/Projects/index.jsx @@ -141,15 +141,12 @@ export default class Projects extends React.Component { key: 'edit', icon: 'pen', text: t('Edit'), - action: 'edit', onClick: item => trigger('resource.baseinfo.edit', { detail: item }), }, { key: 'quotaEdit', icon: 'pen', text: t('Edit Quota'), - action: 'edit', - show: item => !item.isFedHostNamespace, onClick: item => trigger('project.quota.edit', { type: t('Project'), @@ -160,7 +157,6 @@ export default class Projects extends React.Component { key: 'delete', icon: 'trash', text: t('Delete'), - action: 'delete', onClick: item => trigger('resource.delete', { type: t('Project'),