mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Add namespace to job search results
This commit is contained in:
@@ -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 ]}) => ({
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user