mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Add onClick listener to dismiss toast notification. (#7268)
This commit is contained in:
parent
01b9a07320
commit
4a5935ee36
@ -34,6 +34,10 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
|
|||||||
"Home Assistant is starting, not everything will be available until it is finished.",
|
"Home Assistant is starting, not everything will be available until it is finished.",
|
||||||
duration: 0,
|
duration: 0,
|
||||||
dismissable: false,
|
dismissable: false,
|
||||||
|
action: {
|
||||||
|
text: this.hass!.localize("ui.notification_toast.dismiss"),
|
||||||
|
action: () => {},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
} else if (
|
} else if (
|
||||||
oldHass?.config &&
|
oldHass?.config &&
|
||||||
|
@ -695,7 +695,8 @@
|
|||||||
"connection_lost": "Connection lost. Reconnecting…",
|
"connection_lost": "Connection lost. Reconnecting…",
|
||||||
"started": "Home Assistant has started!",
|
"started": "Home Assistant has started!",
|
||||||
"starting": "Home Assistant is starting, not everything will be available until it is finished.",
|
"starting": "Home Assistant is starting, not everything will be available until it is finished.",
|
||||||
"triggered": "Triggered {name}"
|
"triggered": "Triggered {name}",
|
||||||
|
"dismiss": "Dismiss"
|
||||||
},
|
},
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"external_app_configuration": "App Configuration",
|
"external_app_configuration": "App Configuration",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user