Skip to content
Snippets Groups Projects
Commit 2efc1316 authored by ddamiron's avatar ddamiron
Browse files

add auto open first errors and infos

parent b1285ce5
Branches
Tags
5 merge requests!10New updated datalog,!9add all datalog components and services into angular gui,!8update Datalog research input,!7Datalog research input,!14Version 1.3.0
......@@ -13,7 +13,6 @@ import { UserService } from './user/services';
import { AppDirectives } from './directives';
import { FilterPipe } from './components/logs-dashboard/logs-slugs/filter.pipe';
// Function used by APP_INITIALIZER before the app start: init user info / statut (expect a promise)
export function initUserService(authService: UserService) {
return (): Promise<any> => {
......
......@@ -90,6 +90,12 @@ export class LogsErrorComponent implements OnChanges {
this.childSessionId,
).subscribe((results) => {
this.allStepsData = results;
for (const result of results) {
if (result.counts.ERROR > 0) {
this.getLogsSelector(result._id.step, result.counts);
break;
}
}
},
);
}
......
......@@ -85,6 +85,7 @@ export class LogsInfoComponent implements OnChanges {
this.childSessionId,
).subscribe((results) => {
this.allStepsData = results;
this.getLogsSelector(results[0]._id.step, results[0].counts);
},
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment