A platform for community discussion. Free, open, simple.
FIX: sets a title for notifications button (#9745)
Joffrey JAFFEUXaf6e61defd69
diff --git a/app/assets/javascripts/select-kit/components/notifications-button.js b/app/assets/javascripts/select-kit/components/notifications-button.jsindex f52b5446d30..abf02da3dc3 100644--- a/app/assets/javascripts/select-kit/components/notifications-button.js+++ b/app/assets/javascripts/select-kit/components/notifications-button.js@@ -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;