mirror of https://github.com/zulip/zulip.git
message_feed_errors: Don't show search public stream to spectators.
Fixes #20299.
This commit is contained in:
parent
c528e768ff
commit
b4075b78eb
|
@ -82,6 +82,7 @@ export function show_end_of_results_notice() {
|
|||
$(".all-messages-search-caution").show();
|
||||
|
||||
// Set the link to point to this search with streams:public added.
|
||||
// Note that element we adjust is not visible to spectators.
|
||||
const operators = narrow_state.filter().operators();
|
||||
const update_hash = hash_util.search_public_streams_notice_url(operators);
|
||||
$(".all-messages-search-caution a.search-shared-history").attr("href", update_hash);
|
||||
|
|
|
@ -19,10 +19,18 @@
|
|||
target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
|
||||
{{/tr}}
|
||||
|
||||
<span class="only-visible-for-spectators">
|
||||
{{#tr}}
|
||||
<z-link>Log in</z-link> to search your personal history.
|
||||
{{#*inline "z-link"}}<a href="/login/">{{> @partial-block}}</a>{{/inline}}
|
||||
{{/tr}}
|
||||
</span>
|
||||
<span class="hidden-for-spectators">
|
||||
{{#tr}}
|
||||
Consider <z-link>searching all public streams</z-link>.
|
||||
{{#*inline "z-link"}}<a class="search-shared-history" href="">{{> @partial-block}}</a>{{/inline}}
|
||||
{{/tr}}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="empty_feed_notice_main"></div>
|
||||
|
|
Loading…
Reference in New Issue