FEATURE: Make the tag_groups#search endpoint public. (#12643)

The method uses the "TagGroup#visible" method to respect the tag group visibility settings.
This commit is contained in:
Roman Rizzi
2021-04-08 14:23:13 -03:00
committed by GitHub
parent 26d7eedf4c
commit 8339b8f412
4 changed files with 88 additions and 15 deletions
@@ -55,9 +55,9 @@ export default MultiSelectComponent.extend(TagsMixin, {
_transformJson(context, json) {
return json.results
.sort((a, b) => a.id > b.id)
.sort((a, b) => a.name > b.name)
.map((result) => {
return { id: result.text, name: result.text, count: result.count };
return { id: result.name, name: result.name, count: result.count };
});
},
});