Skip to content

Commit

Permalink
Tenant search parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsak committed Mar 11, 2024
1 parent 3d70465 commit 05466d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/dashboard/src/views/repo/repo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export default class Repo extends Component {
const { owner, repo } = this.props.match.params;
this.props.history.push({
pathname: `/repo/${owner}/${repo}/${env}/${deployment}`,
search: this.props.location.search
})
}

Expand Down Expand Up @@ -456,9 +457,11 @@ export default class Repo extends Component {

setSelectedTenant(tenant) {
this.setState({ selectedTenant: tenant });
const queryParam = tenant === "" ? tenant : `?tenant=${tenant}`

this.props.history.push({
pathname: this.props.location.pathname,
search: queryParam
})
}

Expand Down

0 comments on commit 05466d4

Please sign in to comment.