mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 18:29:54 +08:00
UX: Put the HR in the correct place
This commit is contained in:
parent
8f21c96ea5
commit
3ed9cbc040
|
@ -131,6 +131,10 @@ export default createWidget('user-menu', {
|
||||||
this.attach('user-notifications', { path })
|
this.attach('user-notifications', { path })
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (this.settings.showLogoutButton || this.state.hasUnread) {
|
||||||
|
result.push(h('hr.bottom-area'));
|
||||||
|
}
|
||||||
|
|
||||||
if (this.settings.showLogoutButton) {
|
if (this.settings.showLogoutButton) {
|
||||||
result.push(
|
result.push(
|
||||||
h('div.logout-link', [
|
h('div.logout-link', [
|
||||||
|
|
|
@ -86,8 +86,7 @@ export default createWidget('user-notifications', {
|
||||||
icon: 'chevron-down',
|
icon: 'chevron-down',
|
||||||
action: 'showAllNotifications',
|
action: 'showAllNotifications',
|
||||||
className: 'btn'
|
className: 'btn'
|
||||||
})),
|
}))
|
||||||
h('hr')
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user