From a92e1f79b6be8bcf7fcfa2a55d1a0587aa44946f Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 2 May 2016 16:19:52 -0400 Subject: [PATCH] Adding callback URLs to outgoing webhooks display (#2850) --- .../backstage/installed_outgoing_webhook.jsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/webapp/components/backstage/installed_outgoing_webhook.jsx b/webapp/components/backstage/installed_outgoing_webhook.jsx index d27bd9029c..16782b4df9 100644 --- a/webapp/components/backstage/installed_outgoing_webhook.jsx +++ b/webapp/components/backstage/installed_outgoing_webhook.jsx @@ -112,6 +112,23 @@ export default class InstalledOutgoingWebhook extends React.Component { ); } + const urls = []; + for (const url of outgoingWebhook.callback_urls) { + urls.push( +
+ {url} +
+ ); + urls.push( +
+ ); + } + return (
@@ -145,6 +162,11 @@ export default class InstalledOutgoingWebhook extends React.Component { />
+
+ + {urls} + +