mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Fix store auth disappearing (#9312)
This commit is contained in:
parent
2eb35668fa
commit
a930e2dc75
@ -50,6 +50,9 @@ class HaStoreAuth extends LitElement {
|
|||||||
bottom: 16px;
|
bottom: 16px;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
transition: bottom 0.25s;
|
transition: bottom 0.25s;
|
||||||
|
--ha-card-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
||||||
|
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
|
||||||
|
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-actions {
|
.card-actions {
|
||||||
|
@ -33,7 +33,7 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
const el = document.createElement("ha-store-auth-card");
|
const el = document.createElement("ha-store-auth-card");
|
||||||
this.provideHass(el);
|
this.provideHass(el);
|
||||||
this.shadowRoot!.appendChild(el);
|
document.body.appendChild(el);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,13 +39,12 @@ export const registerServiceWorker = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Notify users a new frontend is available.
|
// Notify users a new frontend is available.
|
||||||
// When
|
|
||||||
showToast(rootEl, {
|
showToast(rootEl, {
|
||||||
message: "A new version of the frontend is available.",
|
message: "A new version of the frontend is available.",
|
||||||
action: {
|
action: {
|
||||||
// We tell the service worker to call skipWaiting, which activates
|
// We tell the service worker to call skipWaiting, which activates
|
||||||
// the new service worker. Above we listen for `controllerchange`
|
// the new service worker. Above we listen for `controllerchange`
|
||||||
// so we reload the page once a new servic worker activates.
|
// so we reload the page once a new service worker activates.
|
||||||
action: () => installingWorker.postMessage({ type: "skipWaiting" }),
|
action: () => installingWorker.postMessage({ type: "skipWaiting" }),
|
||||||
text: "reload",
|
text: "reload",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user