FIX: correctly localizes period chooser row title

This commit is contained in:
Joffrey JAFFEUX 2018-03-28 13:19:25 +02:00 committed by GitHub
parent 2c1ede6e5f
commit e5dc8ab5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,12 @@
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
import computed from "ember-addons/ember-computed-decorators";
export default DropdownSelectBoxRowComponent.extend({
layoutName: "select-kit/templates/components/period-chooser/period-chooser-row",
classNames: "period-chooser-row"
classNames: "period-chooser-row",
@computed("computedContent")
title(computedContent) {
return I18n.t(`filters.top.${computedContent.name || 'this_week'}`).title;
}
});