A platform for community discussion. Free, open, simple.
FEATURE: no category description in category-drop for staff or TL > 0
Joffrey JAFFEUX3ab58ac88138
diff --git a/app/assets/javascripts/select-kit/components/category-drop.js.es6 b/app/assets/javascripts/select-kit/components/category-drop.js.es6index 83ac00ff1d6..5fa6218806a 100644--- a/app/assets/javascripts/select-kit/components/category-drop.js.es6+++ b/app/assets/javascripts/select-kit/components/category-drop.js.es6@@ -32,7 +32,10 @@ export default ComboBoxComponent.extend({this.get("rowComponentOptions").setProperties({hideParentCategory: this.get("subCategory"),allowUncategorized: true,- displayCategoryDescription: true+ displayCategoryDescription: !(+ this.currentUser &&+ (this.currentUser.get("staff") || this.currentUser.trust_level > 0)+ )});},