left_sidebar: Redesign stream settings popover.

Fixes part of #28699.
This commit is contained in:
Sayam Samal 2024-06-13 10:33:55 +05:30 committed by Tim Abbott
parent f81f26116f
commit a529abc16e
2 changed files with 17 additions and 12 deletions

View File

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

View File

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