mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Use ha toast for frontend notification
This commit is contained in:
parent
decbbc9acd
commit
7ffdb3ddc7
@ -1,8 +1,8 @@
|
|||||||
import '@polymer/paper-toast/paper-toast.js';
|
import '@polymer/ha-toast/ha-toast.js';
|
||||||
import '@polymer/paper-button/paper-button.js';
|
import '@polymer/paper-button/paper-button.js';
|
||||||
|
|
||||||
export default (installingWorker) => {
|
export default (installingWorker) => {
|
||||||
const toast = document.createElement('paper-toast');
|
const toast = document.createElement('ha-toast');
|
||||||
toast.opened = true;
|
toast.opened = true;
|
||||||
toast.text = 'A new version of the frontend is available.';
|
toast.text = 'A new version of the frontend is available.';
|
||||||
toast.duration = 0;
|
toast.duration = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user