2020-02-04 02:56:07 +08:00
|
|
|
import DropdownSelectBoxHeaderComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-header";
|
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2020-08-29 03:30:20 +08:00
|
|
|
import layout from "select-kit/templates/components/period-chooser/period-chooser-header";
|
2018-01-15 18:55:16 +08:00
|
|
|
|
2020-02-04 02:56:07 +08:00
|
|
|
export default DropdownSelectBoxHeaderComponent.extend({
|
2020-08-29 03:30:20 +08:00
|
|
|
layout,
|
2020-02-04 02:56:07 +08:00
|
|
|
classNames: ["period-chooser-header"],
|
|
|
|
|
|
|
|
@discourseComputed("selectKit.isExpanded")
|
|
|
|
caretIcon(isExpanded) {
|
|
|
|
return isExpanded ? "caret-up" : "caret-down";
|
|
|
|
},
|
2018-01-15 18:55:16 +08:00
|
|
|
});
|