mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
Fix flickering toast (#20287)
This commit is contained in:
parent
e8dc61ec36
commit
f13dcb4139
@ -27,7 +27,7 @@ class NotificationManager extends LitElement {
|
|||||||
@query("ha-toast") private _toast!: HaToast | undefined;
|
@query("ha-toast") private _toast!: HaToast | undefined;
|
||||||
|
|
||||||
public async showDialog(parameters: ShowToastParams) {
|
public async showDialog(parameters: ShowToastParams) {
|
||||||
if (this._parameters) {
|
if (this._parameters && this._parameters.message !== parameters.message) {
|
||||||
this._parameters = undefined;
|
this._parameters = undefined;
|
||||||
await this.updateComplete;
|
await this.updateComplete;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user