2020-02-04 02:56:07 +08:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2023-10-11 02:38:59 +08:00
|
|
|
import DropdownSelectBoxHeaderComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-header";
|
2018-01-15 18:55:16 +08:00
|
|
|
|
2020-02-04 02:56:07 +08:00
|
|
|
export default DropdownSelectBoxHeaderComponent.extend({
|
2023-09-26 04:45:57 +08:00
|
|
|
classNames: ["period-chooser-header", "btn-flat"],
|
2020-02-04 02:56:07 +08:00
|
|
|
|
|
|
|
@discourseComputed("selectKit.isExpanded")
|
|
|
|
caretIcon(isExpanded) {
|
|
|
|
return isExpanded ? "caret-up" : "caret-down";
|
|
|
|
},
|
2018-01-15 18:55:16 +08:00
|
|
|
});
|