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:
Abhijeet Kaur 2017-07-07 17:15:53 +05:30 committed by Tim Abbott
parent 09b8e1f644
commit 6869e6a1ec
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ exports.set_up = function () {
$('#create_bot_type').val(GENERIC_BOT_TYPE);
$('#create_bot_button').show();
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) {
$('#bot_table_error').text(JSON.parse(xhr.responseText).msg).show();