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