Hassio fixes

This commit is contained in:
Paulus Schoutsen 2019-04-10 12:32:21 -07:00
parent e23f046c4d
commit 26a39b1bb8
2 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class HassioAddonView extends PolymerElement {
if (!path) return; if (!path) return;
if (path.substr(path.lastIndexOf("/") + 1) === "uninstall") { if (path.substr(path.lastIndexOf("/") + 1) === "uninstall") {
this.backTapped(); history.back();
} else { } else {
this.routeDataChanged(this.route); this.routeDataChanged(this.route);
} }

View File

@ -20,8 +20,6 @@ import {
} from "../../src/data/hassio"; } from "../../src/data/hassio";
import { makeDialogManager } from "../../src/dialogs/make-dialog-manager"; import { makeDialogManager } from "../../src/dialogs/make-dialog-manager";
import { ProvideHassLitMixin } from "../../src/mixins/provide-hass-lit-mixin"; import { ProvideHassLitMixin } from "../../src/mixins/provide-hass-lit-mixin";
// Don't codesplit it, that way the dashboard always loads fast.
import "./hassio-pages-with-tabs";
// The register callback of the IronA11yKeysBehavior inside paper-icon-button // The register callback of the IronA11yKeysBehavior inside paper-icon-button
// is not called, causing _keyBindings to be uninitiliazed for paper-icon-button, // is not called, causing _keyBindings to be uninitiliazed for paper-icon-button,
@ -42,6 +40,7 @@ class HassioMain extends ProvideHassLitMixin(HassRouterPage) {
dashboard: { dashboard: {
tag: "hassio-pages-with-tabs", tag: "hassio-pages-with-tabs",
cache: true, cache: true,
load: () => import("./hassio-pages-with-tabs"),
}, },
snapshots: "dashboard", snapshots: "dashboard",
store: "dashboard", store: "dashboard",