mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Merge branch 'master' into dev
This commit is contained in:
commit
1d08978d6c
@ -21,7 +21,8 @@ import { HomeAssistant } from "../../../types";
|
|||||||
import "../ha-config-section";
|
import "../ha-config-section";
|
||||||
import { configSections } from "../ha-panel-config";
|
import { configSections } from "../ha-panel-config";
|
||||||
import "./ha-config-navigation";
|
import "./ha-config-navigation";
|
||||||
import { mdiCloudLock } from "@mdi/js";
|
import { mdiClose, mdiCloudLock } from "@mdi/js";
|
||||||
|
import { showConfirmationDialog } from "../../../dialogs/generic/show-dialog-box";
|
||||||
|
|
||||||
@customElement("ha-config-dashboard")
|
@customElement("ha-config-dashboard")
|
||||||
class HaConfigDashboard extends LitElement {
|
class HaConfigDashboard extends LitElement {
|
||||||
@ -143,6 +144,33 @@ 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 {
|
static get styles(): CSSResultArray {
|
||||||
return [
|
return [
|
||||||
haStyle,
|
haStyle,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user