mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
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 button = {
|
||||
className: `btn`,
|
||||
className: `btn toggle-notification-options`,
|
||||
label: null,
|
||||
icon: details.icon,
|
||||
action: 'toggleDropdown',
|
||||
|
@ -53,7 +53,7 @@ export default createWidget('topic-notifications-button', {
|
|||
if (this.attrs.showFullTitle) {
|
||||
button.label = `topic.notifications.${details.key}.title`;
|
||||
} else {
|
||||
button.className = 'btn notifications-dropdown';
|
||||
button.className = 'btn toggle-notifications-options notifications-dropdown';
|
||||
}
|
||||
|
||||
return this.attach('button', button);
|
||||
|
|
Loading…
Reference in New Issue
Block a user