2024-08-23 19:17:07 +08:00
|
|
|
import { classNames } from "@ember-decorators/component";
|
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
|
|
|
|
2024-08-23 19:17:07 +08:00
|
|
|
@classNames("period-chooser-header", "btn-flat")
|
|
|
|
export default class PeriodChooserHeader extends DropdownSelectBoxHeaderComponent {
|
2020-02-04 02:56:07 +08:00
|
|
|
@discourseComputed("selectKit.isExpanded")
|
|
|
|
caretIcon(isExpanded) {
|
|
|
|
return isExpanded ? "caret-up" : "caret-down";
|
2024-08-23 19:17:07 +08:00
|
|
|
}
|
|
|
|
}
|