drafts: Add placeholder text for drafts with no channel selected.

This commit handles the empty channel placeholder for drafts saved
without a channel selected. When these drafts also do not have a topic,
we display "No topic selected" in tandem with "No channel selected",
since we are unable to access the channel configuration to determine
if we should display realm_empty_topic_display_name.
This commit is contained in:
Sayam Samal
2025-09-24 15:37:33 +05:30
committed by Tim Abbott
parent 91dde7cbeb
commit 0d9e503add
4 changed files with 18 additions and 10 deletions

View File

@@ -10,7 +10,7 @@
{{#if stream_name}}
{{stream_name}}
{{else}}
 
<span class="drafts-unknown-msg-header-field">{{t "No channel selected" }}</span>
{{/if}}
</div>
<span class="stream_topic_separator"><i class="zulip-icon zulip-icon-chevron-right"></i></span>