mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Make restore button destructive (#24173)
This commit is contained in:
parent
e86ad21ce2
commit
dbd1e928de
@ -41,7 +41,7 @@ export class HaProgressButton extends LitElement {
|
||||
indeterminate
|
||||
></ha-circular-progress>
|
||||
`
|
||||
: ""}
|
||||
: nothing}
|
||||
</div>
|
||||
`}
|
||||
`;
|
||||
@ -117,6 +117,9 @@ export class HaProgressButton extends LitElement {
|
||||
mwc-button.error slot {
|
||||
visibility: hidden;
|
||||
}
|
||||
:host([destructive]) {
|
||||
--mdc-theme-primary: var(--error-color);
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
|
||||
.disabled=${this._loading ||
|
||||
(backupProtected && this._encryptionKey === "")}
|
||||
@click=${this._startRestore}
|
||||
destructive
|
||||
>
|
||||
${this.localize(
|
||||
"ui.panel.page-onboarding.restore.details.restore.action"
|
||||
|
Loading…
x
Reference in New Issue
Block a user