FIX: display localised title when using notifications-button

This commit is contained in:
Joffrey JAFFEUX 2017-09-10 11:38:52 +02:00 committed by GitHub
parent bba26e48a0
commit a11eec47bb
1 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,15 @@ export default DropdownSelectBoxComponent.extend({
}
},
@computed
titleForRow: function() {
return (rowComponent) => {
const notificationLevel = rowComponent.get(`content.${this.get("idKey")}`);
const details = buttonDetails(notificationLevel);
return I18n.t(`${this.get("i18nPrefix")}.${details.key}.title`);
};
},
@computed
templateForRow: function() {
return (rowComponent) => {