Skip to content

Commit

Permalink
Add namespace to job navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Jun 19, 2020
1 parent 5749ec1 commit e4e7c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/app/components/global-search/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export default class GlobalSearchControl extends Component {
const itemModelName = model.constructor.modelName;

if (itemModelName === 'job') {
this.router.transitionTo('jobs.job', model.name);
this.router.transitionTo('jobs.job', model.name, {
queryParams: { namespace: model.get('namespace.name') },
});
} else if (itemModelName === 'node') {
this.router.transitionTo('clients.client', model.id);
}
Expand Down

0 comments on commit e4e7c78

Please sign in to comment.