mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
confirm_merge_topics: Show realm_empty_topic_display_name for topic="".
This commit adds support to display `realm_empty_topic_display_name` value in the confirm_merge_topics_with_rename modal for topics having the actual value of empty string.
This commit is contained in:
committed by
Tim Abbott
parent
6252e3b3cf
commit
79da2e38c5
@@ -981,7 +981,8 @@ export function try_save_inline_topic_edit($row: JQuery): void {
|
|||||||
confirm_dialog.launch({
|
confirm_dialog.launch({
|
||||||
html_heading: $t_html({defaultMessage: "Merge with another topic?"}),
|
html_heading: $t_html({defaultMessage: "Merge with another topic?"}),
|
||||||
html_body: render_confirm_merge_topics_with_rename({
|
html_body: render_confirm_merge_topics_with_rename({
|
||||||
topic_name: new_topic,
|
topic_display_name: util.get_final_topic_display_name(new_topic),
|
||||||
|
is_empty_string_topic: new_topic === "",
|
||||||
}),
|
}),
|
||||||
on_click() {
|
on_click() {
|
||||||
do_save_inline_topic_edit($row, message, new_topic);
|
do_save_inline_topic_edit($row, message, new_topic);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<p>
|
<p>
|
||||||
{{#tr}}
|
{{#tr}}
|
||||||
The topic <z-topic-name>{topic_name}</z-topic-name> already exists in this channel.
|
The topic <z-topic-name>{topic_display_name}</z-topic-name> already exists in this channel.
|
||||||
Are you sure you want to combine messages from these topics? This cannot be undone.
|
Are you sure you want to combine messages from these topics? This cannot be undone.
|
||||||
{{#*inline "z-topic-name"}}<strong class="white-space-preserve-wrap">{{> @partial-block}}</strong>{{/inline}}
|
{{#*inline "z-topic-name"}}<strong class="white-space-preserve-wrap {{#if is_empty_string_topic}}empty-topic-display{{/if}}">{{> @partial-block}}</strong>{{/inline}}
|
||||||
{{/tr}}
|
{{/tr}}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user