mirror of https://github.com/rancher/ui.git
Merge pull request #3055 from loganhz/hppt
Support proxy url for notifier
This commit is contained in:
commit
8cdb105c8b
|
|
@ -55,6 +55,22 @@
|
|||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-12">
|
||||
<label
|
||||
class="acc-label text-capitalize"
|
||||
for="input-slack-config-proxy-url"
|
||||
>
|
||||
{{t "notifierPage.proxyUrl.label"}}
|
||||
</label>
|
||||
{{input
|
||||
classNames="form-control"
|
||||
id="input-slack-config-proxy-url"
|
||||
value=model.slackConfig.proxyUrl
|
||||
placeholder=(t "notifierPage.proxyUrl.placeholder")
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{else if (eq currentType "email")}}
|
||||
<div class="row">
|
||||
<div class="col span-12 mt-0 mb-0">
|
||||
|
|
@ -182,6 +198,22 @@
|
|||
{{t "notifierPage.pagerduty.serviceKey.helpText"}}
|
||||
</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-12">
|
||||
<label
|
||||
class="acc-label text-capitalize"
|
||||
for="input-pagerduty-config-proxy-url"
|
||||
>
|
||||
{{t "notifierPage.proxyUrl.label"}}
|
||||
</label>
|
||||
{{input
|
||||
classNames="form-control"
|
||||
id="input-pagerduty-config-proxy-url"
|
||||
value=model.pagerdutyConfig.proxyUrl
|
||||
placeholder=(t "notifierPage.proxyUrl.placeholder")
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{else if (eq currentType "wechat")}}
|
||||
<div class="row">
|
||||
<div class="col span-12 mt-0 mb-0">
|
||||
|
|
@ -259,6 +291,22 @@
|
|||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-12">
|
||||
<label
|
||||
class="acc-label text-capitalize"
|
||||
for="input-notifierpage-config-proxy-url"
|
||||
>
|
||||
{{t "notifierPage.proxyUrl.label"}}
|
||||
</label>
|
||||
{{input
|
||||
classNames="form-control"
|
||||
id="input-notifierpage-config-proxy-url"
|
||||
value=model.wechatConfig.proxyUrl
|
||||
placeholder=(t "notifierPage.proxyUrl.placeholder")
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{else if (eq currentType "webhook")}}
|
||||
<div class="row">
|
||||
<div class="col span-12 mt-0 mb-0">
|
||||
|
|
@ -284,6 +332,22 @@
|
|||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-12">
|
||||
<label
|
||||
class="acc-label text-capitalize"
|
||||
for="input-webhook-config-proxy-url"
|
||||
>
|
||||
{{t "notifierPage.proxyUrl.label"}}
|
||||
</label>
|
||||
{{input
|
||||
classNames="form-control"
|
||||
id="input-webhook-config-proxy-url"
|
||||
value=model.webhookConfig.proxyUrl
|
||||
placeholder=(t "notifierPage.proxyUrl.placeholder")
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq currentType "slack")}}
|
||||
|
|
|
|||
|
|
@ -2039,6 +2039,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue