mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
When message is sent in a muted topic (with automatically follow or unmute topic setting turned off), unmute topic banner is shown. Earlier, using unmute topic button was resulting in server error for empty string topic. This commit fixes the bug.
25 lines
1.1 KiB
Handlebars
25 lines
1.1 KiB
Handlebars
<div
|
|
class="main-view-banner {{banner_type}} {{classname}}"
|
|
{{#if user_id}}data-user-id="{{user_id}}"{{/if}}
|
|
{{#if stream_id}}data-stream-id="{{stream_id}}"{{/if}}
|
|
{{#if (or topic_name is_empty_string_topic)}}data-topic-name="{{topic_name}}"{{/if}}>
|
|
<div class="main-view-banner-elements-wrapper">
|
|
{{#if banner_text}}
|
|
<p class="banner_content">{{banner_text}}</p>
|
|
{{else}}
|
|
<div class="banner_content">{{> @partial-block .}}</div>
|
|
{{/if}}
|
|
{{#if button_text}}
|
|
<button class="main-view-banner-action-button{{#if hide_close_button}} right_edge{{/if}}" {{#if scheduling_message}}data-validation-trigger="schedule"{{/if}}>{{button_text}}</button>
|
|
{{/if}}
|
|
{{#if is_onboarding_banner}}
|
|
<button class="main-view-banner-action-button right_edge" data-action="mark-as-read">{{t "Got it"}}</button>
|
|
{{/if}}
|
|
</div>
|
|
{{#if hide_close_button}}
|
|
{{!-- hide_close_button is null by default, and false if explicitly set as false. --}}
|
|
{{else}}
|
|
<a role="button" class="zulip-icon zulip-icon-close main-view-banner-close-button"></a>
|
|
{{/if}}
|
|
</div>
|