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