From d09c4898c1778cca620ccdbc96d2c6fd065724d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 9 Nov 2020 22:50:16 +0100 Subject: [PATCH] Remove logs and fix dark theme during onboarding restore (#7579) --- src/html/onboarding.html.template | 2 + src/onboarding/onboarding-restore-snapshot.ts | 81 ++----------------- 2 files changed, 9 insertions(+), 74 deletions(-) diff --git a/src/html/onboarding.html.template b/src/html/onboarding.html.template index fe22c14392..b4bf31b620 100644 --- a/src/html/onboarding.html.template +++ b/src/html/onboarding.html.template @@ -17,6 +17,8 @@ --primary-text-color: #e1e1e1; --secondary-text-color: #9b9b9b; --disabled-text-color: #6f6f6f; + --mdc-theme-surface: #1e1e1e; + --ha-card-background: #1e1e1e; } } .content { diff --git a/src/onboarding/onboarding-restore-snapshot.ts b/src/onboarding/onboarding-restore-snapshot.ts index 8f280f965d..6fb86da28e 100644 --- a/src/onboarding/onboarding-restore-snapshot.ts +++ b/src/onboarding/onboarding-restore-snapshot.ts @@ -4,7 +4,6 @@ import { CSSResult, customElement, html, - internalProperty, LitElement, property, TemplateResult, @@ -15,10 +14,6 @@ import { showSnapshotUploadDialog } from "../../hassio/src/dialogs/snapshot/show import { navigate } from "../common/navigate"; import type { LocalizeFunc } from "../common/translations/localize"; import "../components/ha-card"; -import { - extractApiErrorMessage, - ignoredStatusCodes, -} from "../data/hassio/common"; import { makeDialogManager } from "../dialogs/make-dialog-manager"; import { ProvideHassLitMixin } from "../mixins/provide-hass-lit-mixin"; import { haStyle } from "../resources/styles"; @@ -38,10 +33,6 @@ class OnboardingRestoreSnapshot extends ProvideHassLitMixin(LitElement) { @property({ type: Boolean }) public restoring = false; - @internalProperty() private _log = ""; - - @internalProperty() private _showFullLog = false; - protected render(): TemplateResult { return this.restoring ? html` - ${this._showFullLog - ? html` - ` - : html` - - `} -
- - ${this._showFullLog - ? this.localize("ui.panel.page-onboarding.restore.hide_log") - : this.localize("ui.panel.page-onboarding.restore.show_log")} - -
+
` : html`