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