mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Do not allow disabling managed webhooks (#2921)
This commit is contained in:
parent
e55ca54509
commit
c9eea4acc1
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user