Clear the error after 25 seconds.

This commit is contained in:
Jason Wall 2024-03-08 08:46:13 -05:00
parent 24910512ad
commit 7b1fc2462e

View File

@ -49,6 +49,9 @@ export class AppComponent extends SubscriberBase implements AfterViewInit {
this.error$.subscribe((err) => {
if (err) {
this.snackBar.open(`Oh no! ${err.msg}`, 'Dismiss Error');
setTimeout(() => {
this.snackBar.dismiss(); // dismiss if its still there after 25 seconds.
}, 25 * 1000);
}
})
);