2024-08-23 19:17:07 +08:00
|
|
|
import { classNames } from "@ember-decorators/component";
|
2019-11-08 05:38:28 +08:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2024-11-20 04:45:18 +08:00
|
|
|
import { i18n } from "discourse-i18n";
|
2023-10-11 02:38:59 +08:00
|
|
|
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
2018-01-15 18:55:16 +08:00
|
|
|
|
2024-08-23 19:17:07 +08:00
|
|
|
@classNames("period-chooser-row")
|
|
|
|
export default class PeriodChooserRow extends DropdownSelectBoxRowComponent {
|
2020-02-03 21:22:14 +08:00
|
|
|
@discourseComputed("rowName")
|
|
|
|
title(rowName) {
|
2024-11-20 04:45:18 +08:00
|
|
|
return i18n(`filters.top.${rowName || "this_week"}`).title;
|
2024-08-23 19:17:07 +08:00
|
|
|
}
|
|
|
|
}
|