Update ha-config-dashboard.ts

This commit is contained in:
Bram Kragten 2020-11-27 00:01:34 +01:00 committed by GitHub
parent 1d08978d6c
commit c5b0ebf76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,7 @@ import { HomeAssistant } from "../../../types";
import "../ha-config-section";
import { configSections } from "../ha-panel-config";
import "./ha-config-navigation";
import { mdiClose, mdiCloudLock } from "@mdi/js";
import { showConfirmationDialog } from "../../../dialogs/generic/show-dialog-box";
import { mdiCloudLock } from "@mdi/js";
@customElement("ha-config-dashboard")
class HaConfigDashboard extends LitElement {
@ -144,33 +143,6 @@ class HaConfigDashboard extends LitElement {
`;
}
private async _dismissConference() {
if (
await showConfirmationDialog(this, {
title: "Home Assistant Conference",
text: html`
If you've
<a
target="_blank"
href="https://hopin.to/events/home-assistant-conference"
rel="noopener noreferrer"
>bought your ticket</a
>
or have
<a
target="_blank"
href="https://www.youtube.com/watch?v=xSB_MuKkgxE"
rel="noopener noreferrer"
>subscribed to the livestream</a
>, you might want to dismiss this banner. Do you want to continue?
`,
})
) {
localStorage.dismissConf2020 = "1";
this.requestUpdate();
}
}
static get styles(): CSSResultArray {
return [
haStyle,