mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
inline_topic_edit: Remove overflowing error text on saving empty topic.
This commit is contained in:
@@ -1011,7 +1011,6 @@ export function try_save_inline_topic_edit($row: JQuery): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function do_save_inline_topic_edit($row: JQuery, message: Message, new_topic: string): void {
|
export function do_save_inline_topic_edit($row: JQuery, message: Message, new_topic: string): void {
|
||||||
const msg_list = message_lists.current;
|
|
||||||
show_topic_edit_spinner($row);
|
show_topic_edit_spinner($row);
|
||||||
|
|
||||||
if (message.locally_echoed) {
|
if (message.locally_echoed) {
|
||||||
@@ -1074,13 +1073,6 @@ export function do_save_inline_topic_edit($row: JQuery, message: Message, new_to
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loading.destroy_indicator($spinner);
|
loading.destroy_indicator($spinner);
|
||||||
if (msg_list === message_lists.current) {
|
|
||||||
const message = channel.xhr_error_message(
|
|
||||||
$t({defaultMessage: "Error saving edit"}),
|
|
||||||
xhr,
|
|
||||||
);
|
|
||||||
$row.find(".edit_error").text(message).css("display", "inline-block");
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,5 @@
|
|||||||
{{#unless realm_mandatory_topics}}placeholder="{{empty_string_topic_display_name}}"{{/unless}} />
|
{{#unless realm_mandatory_topics}}placeholder="{{empty_string_topic_display_name}}"{{/unless}} />
|
||||||
{{> components/icon_button squared=true custom_classes="topic_edit_save tippy-zulip-delayed-tooltip" icon="check" intent="brand" data-tooltip-template-id="save-button-tooltip-template" }}
|
{{> components/icon_button squared=true custom_classes="topic_edit_save tippy-zulip-delayed-tooltip" icon="check" intent="brand" data-tooltip-template-id="save-button-tooltip-template" }}
|
||||||
{{> components/icon_button squared=true custom_classes="topic_edit_cancel tippy-zulip-delayed-tooltip" icon="circle-x" intent="neutral" data-tooltip-template-id="cancel-button-tooltip-template" }}
|
{{> components/icon_button squared=true custom_classes="topic_edit_cancel tippy-zulip-delayed-tooltip" icon="circle-x" intent="neutral" data-tooltip-template-id="cancel-button-tooltip-template" }}
|
||||||
<div class="alert alert-error edit_error" style="display: none"></div>
|
|
||||||
<div class="topic_edit_spinner"></div>
|
<div class="topic_edit_spinner"></div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user