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}"
></paper-input>
<p>
If you no longer want to use this webhook, you can
<button class="link" @click="${this._disableWebhook}">
disable it</button
>.
${cloudhook.managed
? html`
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>
</div>