mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00
@ -30,6 +30,7 @@ export default class NotificationsDropdown extends Dropdown {
|
|||||||
const unread = this.getUnreadCount();
|
const unread = this.getUnreadCount();
|
||||||
const vdom = super.getButton();
|
const vdom = super.getButton();
|
||||||
|
|
||||||
|
vdom.attrs.title = this.props.label;
|
||||||
vdom.attrs.className += (unread ? ' unread' : '');
|
vdom.attrs.className += (unread ? ' unread' : '');
|
||||||
vdom.attrs.onclick = this.onclick.bind(this);
|
vdom.attrs.onclick = this.onclick.bind(this);
|
||||||
|
|
||||||
|
@ -32,9 +32,7 @@ export default class Dropdown extends Component {
|
|||||||
const items = this.props.children ? listItems(this.props.children) : [];
|
const items = this.props.children ? listItems(this.props.children) : [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={'ButtonGroup Dropdown dropdown ' + this.props.className + ' itemCount' + items.length}>
|
||||||
title={this.props.label}
|
|
||||||
className={'ButtonGroup Dropdown dropdown ' + this.props.className + ' itemCount' + items.length}>
|
|
||||||
{this.getButton()}
|
{this.getButton()}
|
||||||
{this.getMenu(items)}
|
{this.getMenu(items)}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user