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.
This commit is contained in:
Jason Wall 2020-08-07 21:10:53 -04:00
parent 5ffed6453e
commit cd0793e3a5

View File

@ -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,
});
}
})
);