FIX: Restore up/down icons in period-chooser
This commit is contained in:
parent
37888d9818
commit
375f4c09ce
|
@ -1,6 +1,5 @@
|
|||
import { oneWay, readOnly } from "@ember/object/computed";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
classNames: ["period-chooser"],
|
||||
|
@ -14,11 +13,6 @@ export default DropdownSelectBoxComponent.extend({
|
|||
return "period-chooser/period-chooser-row";
|
||||
},
|
||||
|
||||
@discourseComputed("isExpanded")
|
||||
caretIcon(isExpanded) {
|
||||
return isExpanded ? "caret-up" : "caret-down";
|
||||
},
|
||||
|
||||
selectKitOptions: {
|
||||
filterable: false,
|
||||
autoFilterable: false,
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
import DropdownSelectBoxHeaderomponent from "select-kit/components/dropdown-select-box/dropdown-select-box-header";
|
||||
import DropdownSelectBoxHeaderComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-header";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
|
||||
export default DropdownSelectBoxHeaderomponent.extend({
|
||||
export default DropdownSelectBoxHeaderComponent.extend({
|
||||
layoutName:
|
||||
"select-kit/templates/components/period-chooser/period-chooser-header",
|
||||
classNames: ["period-chooser-header"]
|
||||
classNames: ["period-chooser-header"],
|
||||
|
||||
@discourseComputed("selectKit.isExpanded")
|
||||
caretIcon(isExpanded) {
|
||||
return isExpanded ? "caret-up" : "caret-down";
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue