Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
2195e67c
Commit
2195e67c
authored
May 22, 2020
by
Chris Hines
Browse files
honor settings for logging or not logging
parent
48f33246
Pipeline
#10403
passed with stages
in 3 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/browser-window.service.ts
View file @
2195e67c
...
...
@@ -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 {
}
}
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment