mirror of
https://github.com/discourse/discourse.git
synced 2024-12-28 17:43:52 +08:00
d1cc60c435
Changes made using the ember-native-class-codemod, plus some manual tweaks
12 lines
504 B
JavaScript
12 lines
504 B
JavaScript
import { classNames } from "@ember-decorators/component";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
import DropdownSelectBoxHeaderComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-header";
|
|
|
|
@classNames("period-chooser-header", "btn-flat")
|
|
export default class PeriodChooserHeader extends DropdownSelectBoxHeaderComponent {
|
|
@discourseComputed("selectKit.isExpanded")
|
|
caretIcon(isExpanded) {
|
|
return isExpanded ? "caret-up" : "caret-down";
|
|
}
|
|
}
|