mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Update _dismissAll to use persistent_notification.dismiss_all service (#16997)
This commit is contained in:
parent
b3fa134198
commit
f19dcba1ce
@ -139,11 +139,7 @@ export class HuiNotificationDrawer extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _dismissAll() {
|
private _dismissAll() {
|
||||||
this._notifications.forEach((notification) => {
|
this.hass.callService("persistent_notification", "dismiss_all");
|
||||||
this.hass.callService("persistent_notification", "dismiss", {
|
|
||||||
notification_id: notification.notification_id,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
this.closeDialog();
|
this.closeDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user