FEATURE: display search on large category-drop and tag-drop

This commit is contained in:
Joffrey JAFFEUX 2018-02-01 23:51:29 +01:00 committed by GitHub
parent 8ff4104555
commit ce507b7957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,11 @@ export default ComboBoxComponent.extend({
});
},
@computed("content")
filterable(content) {
return content.length >= 15;
},
@computed("allCategoriesUrl", "allCategoriesLabel", "noCategoriesUrl", "noCategoriesLabel")
collectionHeader(allCategoriesUrl, allCategoriesLabel, noCategoriesUrl, noCategoriesLabel) {
let shortcuts = "";

View File

@ -31,6 +31,11 @@ export default ComboBoxComponent.extend({
return true;
},
@computed("content")
filterable(content) {
return content.length >= 15;
},
computeHeaderContent() {
let content = this.baseHeaderComputedContent();