web/elements: close notification drawer when clearing all notifications

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-16 12:23:44 +01:00
parent 7c71c52791
commit eb9593a847

View file

@ -183,9 +183,15 @@ export class NotificationDrawer extends LitElement {
composed: true, composed: true,
}), }),
); );
this.dispatchEvent(
new CustomEvent(EVENT_NOTIFICATION_DRAWER_TOGGLE, {
bubbles: true,
composed: true,
}),
);
}); });
}} }}
class="pf-c-button pf-m-secondary pf-m-block" class="pf-c-button pf-m-primary pf-m-block"
type="button" type="button"
aria-label=${t`Clear all`} aria-label=${t`Clear all`}
> >