1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/components/custom-wizard-tag-chooser.js.es6
2023-02-07 14:43:39 +01:00

16 Zeilen
388 B
JavaScript

import TagChooser from "select-kit/components/tag-chooser";
export default TagChooser.extend({
searchTags(url, data, callback) {
if (this.tagGroups) {
let tagGroupsString = this.tagGroups.join(",");
data.filterForInput = {
name: "custom-wizard-tag-chooser",
groups: tagGroupsString,
};
}
return this._super(url, data, callback);
},
});