mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 23:34:36 +08:00
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
|
@computed
|
||||||
templateForRow: function() {
|
templateForRow: function() {
|
||||||
return (rowComponent) => {
|
return (rowComponent) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user