Do not allow disabling managed webhooks (#2921)

This commit is contained in:
Paulus Schoutsen 2019-03-12 11:15:24 -07:00 committed by GitHub
parent e55ca54509
commit c9eea4acc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,10 +60,17 @@ export class CloudWebhookManageDialog extends LitElement {
@blur="${this._restoreLabel}" @blur="${this._restoreLabel}"
></paper-input> ></paper-input>
<p> <p>
If you no longer want to use this webhook, you can ${cloudhook.managed
<button class="link" @click="${this._disableWebhook}"> ? html`
disable it</button This webhook is managed by an integration and cannot be
>. disabled.
`
: html`
If you no longer want to use this webhook, you can
<button class="link" @click="${this._disableWebhook}">
disable it</button
>.
`}
</p> </p>
</div> </div>