mirror of https://github.com/zulip/zulip.git
bots UI: Create a new bot switches tab to "Active bots".
Creating a new bot (by filling out the bots related fields and clicking "Create bot" button) changes tab from "Add a new bot" to "Active bots". This is done to make users know/confirm that the bot has been created and the user can view it in this tab. Fixes: #5731
This commit is contained in:
parent
09b8e1f644
commit
6869e6a1ec
|
@ -163,6 +163,8 @@ exports.set_up = function () {
|
||||||
$('#create_bot_type').val(GENERIC_BOT_TYPE);
|
$('#create_bot_type').val(GENERIC_BOT_TYPE);
|
||||||
$('#create_bot_button').show();
|
$('#create_bot_button').show();
|
||||||
create_avatar_widget.clear();
|
create_avatar_widget.clear();
|
||||||
|
$("#bots_lists_navbar .add-a-new-bot-tab").removeClass("active");
|
||||||
|
$("#bots_lists_navbar .active-bots-tab").addClass("active");
|
||||||
},
|
},
|
||||||
error: function (xhr) {
|
error: function (xhr) {
|
||||||
$('#bot_table_error').text(JSON.parse(xhr.responseText).msg).show();
|
$('#bot_table_error').text(JSON.parse(xhr.responseText).msg).show();
|
||||||
|
|
Loading…
Reference in New Issue