Commit 6d1f1f4d authored by Denys Mishunov's avatar Denys Mishunov

Updated Search JS handler to not use defaultLabel

- Changelog entry
parent 5b5fc580
...@@ -37,9 +37,6 @@ export default class Search { ...@@ -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 { ...@@ -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(),
}); });
} }
......
---
title: Moved labels out of fields on Search page
merge_request: 31137
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment