From cd0793e3a565b8ebde30add628572b4e0c108dfb Mon Sep 17 00:00:00 2001 From: Jason Wall Date: Fri, 7 Aug 2020 21:10:53 -0400 Subject: [PATCH] moved saved pages settings to settings component show current saved page and update option only if on a saved page setup errors to show as a toast when they appear. --- app/db/src/app/app.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/db/src/app/app.component.ts b/app/db/src/app/app.component.ts index 3deba5b9..662023ba 100644 --- a/app/db/src/app/app.component.ts +++ b/app/db/src/app/app.component.ts @@ -43,9 +43,11 @@ export class AppComponent extends SubscriberComponent implements AfterViewInit { this.addSubscription( this.error$.subscribe((err) => { - this.snackBar.open(`Oh no! ${err.msg}`, 'Error', { - duration: 4 * 1000, - }); + if (err) { + this.snackBar.open(`Oh no! ${err.msg}`, 'Error', { + duration: 4 * 1000, + }); + } }) );