Commit 2195e67c authored by Chris Hines's avatar Chris Hines
Browse files

honor settings for logging or not logging

parent 48f33246
Pipeline #10403 passed with stages
in 3 minutes and 24 seconds
......@@ -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 {
}
}
})
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment