Add classes to notification dropdown buttons

This commit is contained in:
Robin Ward 2017-07-28 16:35:14 -04:00
parent 67556e6381
commit 15fa514791
1 changed files with 2 additions and 2 deletions

View File

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