Skip to content

Commit

Permalink
fix: Fix workspace projects permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Jul 12, 2020
1 parent a5f686a commit 1ac85f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/pages/workspaces/containers/DevOps/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ 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 }),
},
{
key: 'delete',
icon: 'trash',
text: t('Delete'),
action: 'delete',
onClick: item =>
trigger('resource.delete', {
type: t('DevOps Project'),
Expand Down
4 changes: 0 additions & 4 deletions src/pages/workspaces/containers/Projects/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'),
Expand Down

0 comments on commit 1ac85f5

Please sign in to comment.