mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
devtools: Set default stream and topic in integrations dev panel.
This makes it a lot faster to just send a message with a few clicks.
This commit is contained in:
committed by
Tim Abbott
parent
2bd9c8cb42
commit
e23d5e9631
@@ -229,6 +229,9 @@ $(function () {
|
|||||||
clear_elements(["stream_name", "topic_name", "URL", "bot_name", "integration_name",
|
clear_elements(["stream_name", "topic_name", "URL", "bot_name", "integration_name",
|
||||||
"fixture_name", "custom_http_headers", "fixture_body", "message"]);
|
"fixture_name", "custom_http_headers", "fixture_body", "message"]);
|
||||||
|
|
||||||
|
$("#stream_name")[0].value = "Denmark";
|
||||||
|
$("#topic_name")[0].value = "Integrations Testing";
|
||||||
|
|
||||||
var potential_default_bot = $("#bot_name")[0][1];
|
var potential_default_bot = $("#bot_name")[0][1];
|
||||||
if (potential_default_bot !== undefined) {
|
if (potential_default_bot !== undefined) {
|
||||||
potential_default_bot.selected = true;
|
potential_default_bot.selected = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user