From 121b00358c1988985fe29d52bef44fc9b30d1d6c Mon Sep 17 00:00:00 2001 From: loganhz Date: Fri, 14 Jun 2019 09:41:09 -0700 Subject: [PATCH] Support proxy url for notifier --- .../notifier/modal-new-edit/template.hbs | 64 +++++++++++++++++++ translations/en-us.yaml | 3 + 2 files changed, 67 insertions(+) diff --git a/app/components/notifier/modal-new-edit/template.hbs b/app/components/notifier/modal-new-edit/template.hbs index e2cbf9ce0..0c7510760 100644 --- a/app/components/notifier/modal-new-edit/template.hbs +++ b/app/components/notifier/modal-new-edit/template.hbs @@ -55,6 +55,22 @@

+
+
+ + {{input + classNames="form-control" + id="input-slack-config-proxy-url" + value=model.slackConfig.proxyUrl + placeholder=(t "notifierPage.proxyUrl.placeholder") + }} +
+
{{else if (eq currentType "email")}}
@@ -182,6 +198,22 @@ {{t "notifierPage.pagerduty.serviceKey.helpText"}}

+
+
+ + {{input + classNames="form-control" + id="input-pagerduty-config-proxy-url" + value=model.pagerdutyConfig.proxyUrl + placeholder=(t "notifierPage.proxyUrl.placeholder") + }} +
+
{{else if (eq currentType "wechat")}}
@@ -259,6 +291,22 @@ }}
+
+
+ + {{input + classNames="form-control" + id="input-notifierpage-config-proxy-url" + value=model.wechatConfig.proxyUrl + placeholder=(t "notifierPage.proxyUrl.placeholder") + }} +
+
{{else if (eq currentType "webhook")}}
@@ -284,6 +332,22 @@ }}
+
+
+ + {{input + classNames="form-control" + id="input-webhook-config-proxy-url" + value=model.webhookConfig.proxyUrl + placeholder=(t "notifierPage.proxyUrl.placeholder") + }} +
+
{{/if}} {{#if (eq currentType "slack")}} diff --git a/translations/en-us.yaml b/translations/en-us.yaml index bf546191a..70e796ee1 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -2033,6 +2033,9 @@ notifierPage: agentPlaceholder: e.g. 1000003 corpPlaceholder: e.g. wwc0cc3d58f9b021b6 defaultRecipientPlaceholder: e.g. 2 + proxyUrl: + label: Proxy URL + placeholder: e.g. http://my-proxy/ webhook: url: URL