feat(console): events (#5092)

Shows the list of events on instance level
This commit is contained in:
Max Peintner
2023-02-01 09:54:00 +01:00
committed by GitHub
parent 5ca7e83f0a
commit e9d5d1dcaf
35 changed files with 1790 additions and 13 deletions

View File

@@ -63,7 +63,11 @@ export class ChangesComponent implements OnInit, OnDestroy {
private _data: BehaviorSubject<any> = new BehaviorSubject([]);
loading: Observable<boolean> = this._loading.asObservable();
public data!: Observable<MappedChange[]>;
public data: Observable<MappedChange[]> = this._data.asObservable().pipe(
scan((acc, val) => {
return false ? val.concat(acc) : acc.concat(val);
}),
);
public changes!: ListChanges;
private destroyed$: Subject<void> = new Subject();
constructor(private mgmtUserService: ManagementService, private authUserService: GrpcAuthService) {}
@@ -106,13 +110,6 @@ export class ChangesComponent implements OnInit, OnDestroy {
}
this.mapAndUpdate(first);
// Create the observable array for consumption in components
this.data = this._data.asObservable().pipe(
scan((acc, val) => {
return false ? val.concat(acc) : acc.concat(val);
}),
);
}
public more(): void {