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

14 lines
511 B
Plaintext
Raw Normal View History

import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
import discourseComputed from "discourse-common/utils/decorators";
export default DropdownSelectBoxRowComponent.extend({
2018-06-15 23:03:24 +08:00
layoutName:
"select-kit/templates/components/period-chooser/period-chooser-row",
classNames: "period-chooser-row",
@discourseComputed("computedContent")
title(computedContent) {
2018-06-15 23:03:24 +08:00
return I18n.t(`filters.top.${computedContent.name || "this_week"}`).title;
}
});