mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 03:15:48 +08:00
07813c4a91
* Convert select-kit from es6 to js * Hide more git blames
14 lines
484 B
JavaScript
14 lines
484 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("rowName")
|
|
title(rowName) {
|
|
return I18n.t(`filters.top.${rowName || "this_week"}`).title;
|
|
}
|
|
});
|