Add classes to notification dropdown buttons
This commit is contained in:
parent
67556e6381
commit
15fa514791
|
@ -43,7 +43,7 @@ export default createWidget('topic-notifications-button', {
|
||||||
const details = buttonDetails(level);
|
const details = buttonDetails(level);
|
||||||
|
|
||||||
const button = {
|
const button = {
|
||||||
className: `btn`,
|
className: `btn toggle-notification-options`,
|
||||||
label: null,
|
label: null,
|
||||||
icon: details.icon,
|
icon: details.icon,
|
||||||
action: 'toggleDropdown',
|
action: 'toggleDropdown',
|
||||||
|
@ -53,7 +53,7 @@ export default createWidget('topic-notifications-button', {
|
||||||
if (this.attrs.showFullTitle) {
|
if (this.attrs.showFullTitle) {
|
||||||
button.label = `topic.notifications.${details.key}.title`;
|
button.label = `topic.notifications.${details.key}.title`;
|
||||||
} else {
|
} else {
|
||||||
button.className = 'btn notifications-dropdown';
|
button.className = 'btn toggle-notifications-options notifications-dropdown';
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.attach('button', button);
|
return this.attach('button', button);
|
||||||
|
|
Loading…
Reference in New Issue