mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:30:23 -06:00
FIX: sets a title for notifications button (#9745)
This commit is contained in:
parent
5a073c6a0a
commit
af6e61defd
@ -22,10 +22,12 @@ export default DropdownSelectBoxComponent.extend({
|
||||
modifySelection(content) {
|
||||
content = content || {};
|
||||
const { i18nPrefix, i18nPostfix } = this.selectKit.options;
|
||||
const title = I18n.t(
|
||||
`${i18nPrefix}.${this.buttonForValue.key}${i18nPostfix}.title`
|
||||
);
|
||||
setProperties(content, {
|
||||
label: I18n.t(
|
||||
`${i18nPrefix}.${this.buttonForValue.key}${i18nPostfix}.title`
|
||||
),
|
||||
title,
|
||||
label: title,
|
||||
icon: this.buttonForValue.icon
|
||||
});
|
||||
return content;
|
||||
|
Loading…
Reference in New Issue
Block a user