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:
Hemanth V. Alluri
2019-05-16 19:10:53 +05:30
committed by Tim Abbott
parent 2bd9c8cb42
commit e23d5e9631

View File

@@ -229,6 +229,9 @@ $(function () {
clear_elements(["stream_name", "topic_name", "URL", "bot_name", "integration_name",
"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];
if (potential_default_bot !== undefined) {
potential_default_bot.selected = true;