mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-04 01:10:33 -06:00
Update device action button variant based on warning class (#26848)
This commit is contained in:
parent
e60f9e326b
commit
d982f042fc
@ -773,6 +773,11 @@ export class HaConfigDevicePage extends LitElement {
|
||||
appearance="plain"
|
||||
target=${ifDefined(firstDeviceAction!.target)}
|
||||
class=${ifDefined(firstDeviceAction!.classes)}
|
||||
.variant=${firstDeviceAction!.classes?.includes(
|
||||
"warning"
|
||||
)
|
||||
? "danger"
|
||||
: "brand"}
|
||||
.action=${firstDeviceAction!.action}
|
||||
@click=${this._deviceActionClicked}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user