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
5aff07a2
Commit
5aff07a2
authored
Feb 23, 2021
by
Chris Hines
Browse files
create a timer to refresh account info
parent
8f2ad96c
Pipeline
#15671
passed with stages
in 7 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/launch-dialog/launch-dialog.component.ts
View file @
5aff07a2
...
...
@@ -89,7 +89,7 @@ export class LaunchDialogComponent implements OnInit {
theme
=
'
strudel-light-theme
'
;
}
if
(
this
.
identity
!==
null
&&
this
.
app
!==
null
)
{
if
(
this
.
app
.
batchcmdurl
!==
null
)
{
if
(
this
.
app
.
batchcmdurl
!==
null
&&
this
.
app
.
batchcmdurl
!==
undefined
)
{
this
.
batchcmdurl
=
this
.
app
.
batchcmdurl
+
"
?theme=
"
+
theme
;
}
else
{
this
.
batchcmdurl
=
this
.
identity
.
site
.
url
+
"
/
"
+
encodeURIComponent
(
this
.
app
.
name
)
+
"
?theme=
"
+
theme
;
...
...
src/app/launcher/launcher.component.ts
View file @
5aff07a2
...
...
@@ -171,6 +171,7 @@ export class LauncherComponent implements OnInit {
this
.
subscriptions
.
push
(
this
.
authService
.
sshAuthzServers
.
subscribe
(
o
=>
{
this
.
updateSshAuthZServers
(
o
)}));
this
.
subscriptions
.
push
(
this
.
computeSitesService
.
identities
.
subscribe
(
o
=>
this
.
navLogin
(
o
)));
this
.
subscriptions
.
push
(
this
.
computeSitesService
.
appidentities
.
subscribe
(
o
=>
this
.
getHealth
(
o
)));
this
.
subscriptions
.
push
(
timer
(
60000
).
pipe
(
repeat
()).
subscribe
(()
=>
{
this
.
getHealth
(
this
.
computeSitesService
.
appidentities
.
value
)
}
));
this
.
subscriptions
.
push
(
this
.
identity$
.
subscribe
(
o
=>
this
.
jobsService
.
setId
(
o
)));
}
...
...
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