message_list: Hide topic edit pencil icon in the edit mode.

The pencil icon incorrectly appeared after it was clicked to switch to the
topic edit mode. 51a8873579 seems to have
introduced this bug.

Closes #14460
This commit is contained in:
Puneeth Chaganti 2020-04-05 17:44:56 +05:30 committed by Tim Abbott
parent 15d68c40dd
commit cd64d2dd27
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,7 @@ exports.MessageList.prototype = {
show_edit_topic: function MessageList_show_edit_topic(recipient_row, form) {
recipient_row.find(".topic_edit_form").empty().append(form);
recipient_row.find('.on_hover_topic_edit').hide();
recipient_row.find('.edit_content_button').hide();
recipient_row.find(".stream_topic").hide();
recipient_row.find(".topic_edit").show();
@ -325,6 +326,7 @@ exports.MessageList.prototype = {
hide_edit_topic: function MessageList_hide_edit_topic(recipient_row) {
recipient_row.find(".stream_topic").show();
recipient_row.find('.on_hover_topic_edit').show();
recipient_row.find('.edit_content_button').show();
recipient_row.find(".topic_edit").hide();
},