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