mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-29 18:49:52 -04:00
Clear the error after 25 seconds.
This commit is contained in:
parent
24910512ad
commit
7b1fc2462e
@ -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);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user