remove trailing spaces
This commit is contained in:
parent
d20a174a6b
commit
8bfb016386
|
@ -6,10 +6,10 @@ export default ComboBoxSelectBoxHeaderComponent.extend({
|
|||
layoutName:
|
||||
"select-kit/templates/components/category-drop/category-drop-header",
|
||||
classNames: "category-drop-header",
|
||||
|
||||
|
||||
classNameBindings: ["categoryStyleClass"],
|
||||
categoryStyleClass: Ember.computed.alias("site.category_style"),
|
||||
|
||||
|
||||
@computed("computedContent.value", "computedContent.name")
|
||||
category(value, name) {
|
||||
if (Ember.isEmpty(value)) {
|
||||
|
@ -21,23 +21,23 @@ export default ComboBoxSelectBoxHeaderComponent.extend({
|
|||
return Category.findById(parseInt(value, 10));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@computed("category.color")
|
||||
categoryBackgroundColor(categoryColor) {
|
||||
return categoryColor || "#e9e9e9";
|
||||
},
|
||||
|
||||
|
||||
@computed("category.text_color")
|
||||
categoryTextColor(categoryTextColor) {
|
||||
return categoryTextColor || "#333";
|
||||
},
|
||||
|
||||
|
||||
@computed("category", "categoryBackgroundColor", "categoryTextColor")
|
||||
categoryStyle(category, categoryBackgroundColor, categoryTextColor) {
|
||||
const categoryStyle = this.siteSettings.category_style;
|
||||
|
||||
|
||||
if (categoryStyle === "bullet") return;
|
||||
|
||||
|
||||
if (category) {
|
||||
if (categoryBackgroundColor || categoryTextColor) {
|
||||
let style = "";
|
||||
|
@ -47,16 +47,16 @@ export default ComboBoxSelectBoxHeaderComponent.extend({
|
|||
if (categoryTextColor) {
|
||||
style += `color: #${categoryTextColor};`;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return style.htmlSafe();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
didRender() {
|
||||
this._super();
|
||||
|
||||
|
||||
this.$().attr("style", this.get("categoryStyle"));
|
||||
this.$(".caret-icon").attr("style", this.get("categoryStyle"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue