Add networkerror notify

This commit is contained in:
rubikscraft
2022-03-20 22:11:17 +01:00
parent 26c3918bcc
commit 8c88c5f24e
12 changed files with 87 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
import { Component, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { AutoUnsubscribe } from 'ngx-auto-unsubscribe-decorator';
import { SysPreferenceResponse } from 'picsur-shared/dist/dto/api/pref.dto';
import { SysprefService as SysPrefService } from 'src/app/services/api/syspref.service';
@@ -6,7 +6,7 @@ import { SysprefService as SysPrefService } from 'src/app/services/api/syspref.s
@Component({
templateUrl: './settings-syspref.component.html',
})
export class SettingsSysprefComponent implements OnInit, OnChanges {
export class SettingsSysprefComponent implements OnInit {
render = true;
preferences: SysPreferenceResponse[] = [];
@@ -32,10 +32,6 @@ export class SettingsSysprefComponent implements OnInit, OnChanges {
});
}
ngOnChanges(changes: SimpleChanges): void {
console.log('cahnges', changes);
}
private compareFlatObjectArray(a: any[], b: any[]): boolean {
if (a.length !== b.length) {
return false;