Skip to content

Commit

Permalink
Add namespace to job search results
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed May 27, 2021
1 parent 490f393 commit 51a9e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/app/components/global-search/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class GlobalSearchControl extends Component {
type: 'job',
id,
namespace,
label: name,
label: `${name} @ ${namespace}`,
}));

const nodeResults = allNodeResults.slice(0, MAXIMUM_RESULTS).map(({ ID: name, Scope: [ id ]}) => ({
Expand Down
4 changes: 2 additions & 2 deletions ui/tests/acceptance/search-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ module('Acceptance | search', function(hooks) {
search.groups[0].as(jobs => {
assert.equal(jobs.name, 'Jobs (2)');
assert.equal(jobs.options.length, 2);
assert.equal(jobs.options[0].text, 'vwxyz');
assert.equal(jobs.options[1].text, 'xyz job');
assert.equal(jobs.options[0].text, 'vwxyz @ default');
assert.equal(jobs.options[1].text, 'xyz job @ default');
});

search.groups[1].as(clients => {
Expand Down

0 comments on commit 51a9e00

Please sign in to comment.