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_bots: Declare bot types as global variables in the module.

Sahil Batra0d20d132b7df
diff --git a/static/js/settings_bots.js b/static/js/settings_bots.js
index c49fded5ea1..e05be09e374 100644
--- a/static/js/settings_bots.js
+++ b/static/js/settings_bots.js
@@ -17,6 +17,10 @@ import * as loading from "./loading";
import {page_params} from "./page_params";
import * as people from "./people";
+const OUTGOING_WEBHOOK_BOT_TYPE = "3";
+const GENERIC_BOT_TYPE = "1";
+const EMBEDDED_BOT_TYPE = "4";
+
export function hide_errors() {
$("#bot_table_error").hide();
$(".bot_error").hide();
@@ -257,9 +261,6 @@ export function set_up() {
);
const create_avatar_widget = avatar.build_bot_create_widget();
- const OUTGOING_WEBHOOK_BOT_TYPE = "3";
- const GENERIC_BOT_TYPE = "1";
- const EMBEDDED_BOT_TYPE = "4";
const GENERIC_INTERFACE = "1";