discourse/app/assets/javascripts/select-kit/addon/components/period-chooser/period-chooser-row.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
509 B
JavaScript
Raw Normal View History

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;
}
}