mirror of https://github.com/zulip/zulip.git
parent
f81f26116f
commit
a529abc16e
|
@ -10,6 +10,7 @@ import {parse_html} from "./ui_util";
|
|||
|
||||
export function initialize(): void {
|
||||
popover_menus.register_popover_menu("#streams_inline_icon", {
|
||||
theme: "popover-menu",
|
||||
onShow(instance) {
|
||||
const can_create_streams =
|
||||
settings_data.user_can_create_private_streams() ||
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
<ul class="nav nav-list">
|
||||
<li>
|
||||
<a href="#channels/notsubscribed" class="navigate_and_close_popover">
|
||||
{{t "Browse channels" }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#channels/new" class="navigate_and_close_popover">
|
||||
{{t "Create a channel" }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="popover-menu" data-simplebar>
|
||||
<ul role="menu" class="popover-menu-list">
|
||||
<li role="none" class="link-item popover-menu-list-item">
|
||||
<a href="#channels/notsubscribed" role="menuitem" class="popover-menu-link navigate_and_close_popover" tabindex="0">
|
||||
<i class="popover-menu-icon zulip-icon zulip-icon-search" aria-hidden="true"></i>
|
||||
<span class="popover-menu-label">{{t "Browse channels" }}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li role="none" class="link-item popover-menu-list-item">
|
||||
<a href="#channels/new" role="menuitem" class="popover-menu-link navigate_and_close_popover" tabindex="0">
|
||||
<i class="popover-menu-icon zulip-icon zulip-icon-square-plus" aria-hidden="true"></i>
|
||||
<span class="popover-menu-label">{{t "Create a channel" }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue