From 6869e6a1ec8748a838dd8eb69c97c721086566ab Mon Sep 17 00:00:00 2001 From: Abhijeet Kaur Date: Fri, 7 Jul 2017 17:15:53 +0530 Subject: [PATCH] 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 --- static/js/settings_bots.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/settings_bots.js b/static/js/settings_bots.js index 5703a8de0c..57c8e5e202 100644 --- a/static/js/settings_bots.js +++ b/static/js/settings_bots.js @@ -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();