Updated Search JS handler to not use defaultLabel
- Changelog entry
This commit is contained in:
parent
5b5fc580f3
commit
6d1f1f4dcb
2 changed files with 5 additions and 6 deletions
|
@ -37,9 +37,6 @@ export default class Search {
|
||||||
text(obj) {
|
text(obj) {
|
||||||
return obj.full_name;
|
return obj.full_name;
|
||||||
},
|
},
|
||||||
toggleLabel(obj) {
|
|
||||||
return `${$groupDropdown.data('defaultLabel')} ${obj.full_name}`;
|
|
||||||
},
|
|
||||||
clicked: () => Search.submitSearch(),
|
clicked: () => Search.submitSearch(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -70,9 +67,6 @@ export default class Search {
|
||||||
text(obj) {
|
text(obj) {
|
||||||
return obj.name_with_namespace;
|
return obj.name_with_namespace;
|
||||||
},
|
},
|
||||||
toggleLabel(obj) {
|
|
||||||
return `${$projectDropdown.data('defaultLabel')} ${obj.name_with_namespace}`;
|
|
||||||
},
|
|
||||||
clicked: () => Search.submitSearch(),
|
clicked: () => Search.submitSearch(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
5
changelogs/unreleased/47814-search-view-labels.yml
Normal file
5
changelogs/unreleased/47814-search-view-labels.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Moved labels out of fields on Search page
|
||||||
|
merge_request: 31137
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in a new issue