FIX: Restore up/down icons in period-chooser

This commit is contained in:
Penar Musaraj 2020-02-03 13:56:07 -05:00
parent 37888d9818
commit 375f4c09ce
2 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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";
}
});