Skip to content
Snippets Groups Projects
Commit 2195e67c authored by Chris Hines's avatar Chris Hines
Browse files

honor settings for logging or not logging

parent 48f33246
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!58Test,!57honor settings for logging or not logging
Pipeline #10403 passed
......@@ -16,6 +16,7 @@ import { ModaldialogComponent } from './modaldialog/modaldialog.component';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material';
import {NotificationsService } from './notifications.service';
import { HttpClientModule, HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { SettingsService } from './settings.service';
import { environment } from '../environments/environment';
......@@ -32,7 +33,8 @@ export class BrowserWindowService {
constructor(private backendSelectionService: BackendSelectionService,
public dialog: MatDialog,
private notifications: NotificationsService,
private http: HttpClient) {
private http: HttpClient,
private settingsService: SettingsService) {
this.backendSelectionService.apiserver.subscribe( (value) => { if (value != null) {this.twsproxy = value.tws ; this.Base = value.tes }});
this.authdone$ = new Subject<boolean>();
this.openapps = [];
......@@ -106,6 +108,7 @@ export class BrowserWindowService {
public logUsage() {
var app: any;
if (this.settingsService.logging) {
this.openapps.forEach( (app,index) => {
if (!app.window.closed) {
if (app.job.state == 'RUNNING') {
......@@ -115,6 +118,7 @@ export class BrowserWindowService {
}
}
})
}
}
......
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