Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Live update lock icon on changing bot creation policy.

Sahil Batraea057554318b
diff --git a/web/src/settings_bots.js b/web/src/settings_bots.js
index 0890750beeb..f9026c56532 100644
--- a/web/src/settings_bots.js
+++ b/web/src/settings_bots.js
@@ -178,9 +178,11 @@ function update_add_bot_button() {
$("#bot-settings .add-a-new-bot").show();
$("#admin-bot-list .add-new-bots").show();
$("#admin-bot-list .manage-your-bots").hide();
+ $(".org-settings-list li[data-section='bot-list-admin'] .locked").hide();
} else {
$("#bot-settings .add-a-new-bot").hide();
$("#admin-bot-list .add-new-bots").hide();
+ $(".org-settings-list li[data-section='bot-list-admin'] .locked").show();
if (bot_data.get_all_bots_for_current_user().length > 0) {
$("#admin-bot-list .manage-your-bots").show();