2018-01-15 18:55:16 +08:00
|
|
|
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
2019-11-08 05:38:28 +08:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2018-01-15 18:55:16 +08:00
|
|
|
|
|
|
|
export default DropdownSelectBoxRowComponent.extend({
|
|
|
|
layoutName:
|
|
|
|
"select-kit/templates/components/period-chooser/period-chooser-row",
|
2020-02-03 21:22:14 +08:00
|
|
|
classNames: ["period-chooser-row"],
|
2018-03-28 19:19:25 +08:00
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
@discourseComputed("rowName")
|
|
|
|
title(rowName) {
|
|
|
|
return I18n.t(`filters.top.${rowName || "this_week"}`).title;
|
2018-03-28 19:19:25 +08:00
|
|
|
}
|
2018-01-15 18:55:16 +08:00
|
|
|
});
|