stream-settings: Replace "Not subscribed" tab with "Available".

This commit replaces "Not subscribed" tab in stream settings
with "Available" tab where only streams which the user can
subscribe to are shown.

Fixes #35919.
This commit is contained in:
Sahil Batra
2025-09-03 12:00:17 +05:30
committed by Tim Abbott
parent 24f678feb6
commit 683eca97a7
13 changed files with 63 additions and 69 deletions

View File

@@ -1,7 +1,7 @@
<div class="popover-menu" data-simplebar data-simplebar-tab-index="-1">
<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">
<a href="#channels/available" role="menuitem" class="popover-menu-link navigate_and_close_popover" tabindex="0">
<i class="popover-menu-icon zulip-icon zulip-icon-browse-channels" aria-hidden="true"></i>
<span class="popover-menu-label">{{t "Browse channels" }}</span>
</a>

View File

@@ -48,7 +48,7 @@
{{/if}}
</span>
</div>
<div class="not_subscribed_streams_tab_empty_text">
<div class="available_streams_tab_empty_text">
<span class="settings-empty-option-text">
{{t 'No channels to show.'}}
<a href="#channels/all">{{t 'View all channels'}}</a>

View File

@@ -1,10 +1,10 @@
{{#if exactly_one_unsubscribed_stream}}
<a class="subscribe-more-link" href="#channels/notsubscribed">
<a class="subscribe-more-link" href="#channels/available">
<i class="subscribe-more-icon zulip-icon zulip-icon-browse-channels" aria-hidden="true" ></i>
<span class="subscribe-more-label">{{~t "BROWSE 1 MORE CHANNEL" ~}}</span>
</a>
{{else if can_subscribe_stream_count}}
<a class="subscribe-more-link" href="#channels/notsubscribed">
<a class="subscribe-more-link" href="#channels/available">
<i class="subscribe-more-icon zulip-icon zulip-icon-browse-channels" aria-hidden="true" ></i>
<span class="subscribe-more-label">{{~t "BROWSE {can_subscribe_stream_count} MORE CHANNELS" ~}}</span>
</a>