Skip to content
Snippets Groups Projects
Commit 7666b365 authored by Martin Mechtel's avatar Martin Mechtel
Browse files

reportdata started

parent 00b74de7
No related branches found
No related tags found
No related merge requests found
import { SyscheckDataService, NetworkRequestTestResult } from './../syscheck-data.service';
import { SyscheckDataService, NetworkRequestTestResult, ReportEntry } from './../syscheck-data.service';
import { Component, OnInit } from '@angular/core';
import { BackendService, RequestBenchmarkerFunction, RequestBenchmarkerFunctionCallback} from '../backend.service';
......@@ -139,11 +139,10 @@ export class NetworkCheckComponent implements OnInit {
updateStatus(`Die folgenden Netzwerkeigenschaften wurden festgestellt:`);
this.testDone = true;
// this.ds.networkData$.next({
// 'uploadTest': this.averageSpeed.uploadTest,
// 'downloadTest': this.averageSpeed.downloadTest,
// 'pingTest': this.averageSpeed.pingTest
// });
// send data for reporting
const myReport: ReportEntry[] = [];
myReport.push({'label': 'lalala', 'value': 'sososo'});
this.ds.networkData$.next(myReport);
});
});
......
......@@ -36,9 +36,7 @@ export class RunComponent implements OnInit {
this.ds.unitcheckAvailable$.subscribe(is => this.unitcheckAvailable = is);
this.ds.questionnaireAvailable$.subscribe(is => this.questionnaireAvailable = is);
this.ds.networkData$.subscribe(nd => {
if (nd !== null) {
this.stepNetwork.completed = true;
}
this.stepNetwork.completed = nd.length > 0;
});
this.stepper.linear = true;
......
......@@ -21,8 +21,8 @@ export class SyscheckDataService {
constructor() {
this.checkConfig$.subscribe(cDef => {
this.environmentData$.next(null);
this.networkData$.next(null);
this.environmentData$.next([]);
this.networkData$.next([]);
if (cDef === null) {
this.reportWithEmail$.next(false);
this.unitcheckAvailable$.next(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment