FIX: display localised title when using notifications-button
This commit is contained in:
parent
bba26e48a0
commit
a11eec47bb
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue