FIX: sets a title for notifications button (#9745)

This commit is contained in:
Joffrey JAFFEUX 2020-05-11 20:46:08 +02:00 committed by GitHub
parent 5a073c6a0a
commit af6e61defd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;