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";
|
2018-01-15 05:55:16 -05:00
|
|
|
|
2020-02-03 13:56:07 -05:00
|
|
|
export default DropdownSelectBoxHeaderComponent.extend({
|
2018-06-15 11:03:24 -04:00
|
|
|
layoutName:
|
|
|
|
"select-kit/templates/components/period-chooser/period-chooser-header",
|
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
|
|
|
});
|