mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 21:14:06 +08:00
d1cc60c435
Changes made using the ember-native-class-codemod, plus some manual tweaks
13 lines
507 B
JavaScript
13 lines
507 B
JavaScript
import { classNames } from "@ember-decorators/component";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
import I18n from "discourse-i18n";
|
|
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
|
|
|
@classNames("period-chooser-row")
|
|
export default class PeriodChooserRow extends DropdownSelectBoxRowComponent {
|
|
@discourseComputed("rowName")
|
|
title(rowName) {
|
|
return I18n.t(`filters.top.${rowName || "this_week"}`).title;
|
|
}
|
|
}
|