mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 09:10:32 +08:00
32665cf9dd
Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
13 lines
509 B
JavaScript
13 lines
509 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(`filters.top.${rowName || "this_week"}`).title;
|
|
}
|
|
}
|