Skip to content

Commit

Permalink
fix: Fix federated projects watch
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 64cd31a commit 42594df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspaces/containers/FedProjects/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class Projects extends React.Component {
...this.props.match.params,
store: this.projectStore,
clusters: this.clusters.slice(),
success: () => this.getData(),
success: () => this.props.getData(),
})

render() {
Expand Down
6 changes: 6 additions & 0 deletions src/stores/project.federated.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export default class FederatedProject extends FederatedStore {
)}/federatednamespaces`
}

getWatchListUrl = ({ workspace, ...params }) => {
return `${this.apiVersion}/watch${this.getPath(params)}/federated${
this.module
}?labelSelector=kubesphere.io/workspace=${workspace}`
}

@action
async fetchList({ workspace, namespace, more, devops, ...params } = {}) {
this.list.isLoading = true
Expand Down

0 comments on commit 42594df

Please sign in to comment.