Skip to content

Commit

Permalink
fix: Fix success callback for no watch list
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 23, 2020
1 parent 2b76fa5 commit 44894a2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/pages/access/containers/Roles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class Roles extends React.Component {
onClick: item =>
trigger('resource.baseinfo.edit', {
detail: item,
success: routing.query,
}),
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/pages/clusters/containers/Alerting/Messages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class AlertingPolicy extends React.Component {
}

get itemActions() {
const { trigger } = this.props
const { trigger, routing } = this.props
return [
{
key: 'delete',
Expand All @@ -93,6 +93,7 @@ export default class AlertingPolicy extends React.Component {
trigger('resource.delete', {
type: t(this.name),
detail: item,
success: routing.query,
}),
},
]
Expand Down
1 change: 1 addition & 0 deletions src/pages/clusters/containers/Roles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class ClusterRoles extends React.Component {
onClick: item =>
trigger('resource.baseinfo.edit', {
detail: item,
success: routing.query,
}),
},
{
Expand Down
1 change: 1 addition & 0 deletions src/pages/devops/containers/Roles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class Secrets extends React.Component {
onClick: item =>
trigger('resource.baseinfo.edit', {
detail: item,
success: routing.query,
}),
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/pages/fedprojects/containers/Alerting/Messages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class AlertingPolicy extends React.Component {
}

get itemActions() {
const { trigger } = this.props
const { trigger, routing } = this.props
return [
{
key: 'delete',
Expand All @@ -93,6 +93,7 @@ export default class AlertingPolicy extends React.Component {
trigger('resource.delete', {
type: t(this.name),
detail: item,
success: routing.query,
}),
},
]
Expand Down
3 changes: 2 additions & 1 deletion src/pages/projects/containers/Alerting/Messages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class AlertingPolicy extends React.Component {
}

get itemActions() {
const { trigger } = this.props
const { trigger, routing } = this.props
return [
{
key: 'delete',
Expand All @@ -93,6 +93,7 @@ export default class AlertingPolicy extends React.Component {
trigger('resource.delete', {
type: t(this.name),
detail: item,
success: routing.query,
}),
},
]
Expand Down
3 changes: 2 additions & 1 deletion src/pages/projects/containers/Roles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class Roles extends React.Component {
onClick: item =>
trigger('resource.baseinfo.edit', {
detail: item,
success: routing.query,
}),
},
{
Expand Down Expand Up @@ -148,7 +149,7 @@ export default class Roles extends React.Component {
render() {
const { bannerProps, tableProps } = this.props
return (
<ListPage {...this.props}>
<ListPage {...this.props} noWatch>
<Banner
{...bannerProps}
tabs={this.tabs}
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspaces/containers/Roles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default class Roles extends React.Component {
onClick: item =>
trigger('resource.baseinfo.edit', {
detail: item,
success: routing.query,
}),
},
{
Expand Down

0 comments on commit 44894a2

Please sign in to comment.