mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
14 lines
511 B
JavaScript
14 lines
511 B
JavaScript
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
export default DropdownSelectBoxRowComponent.extend({
|
|
layoutName:
|
|
"select-kit/templates/components/period-chooser/period-chooser-row",
|
|
classNames: "period-chooser-row",
|
|
|
|
@discourseComputed("computedContent")
|
|
title(computedContent) {
|
|
return I18n.t(`filters.top.${computedContent.name || "this_week"}`).title;
|
|
}
|
|
});
|