Commit 5aff07a2 authored by Chris Hines's avatar Chris Hines
Browse files

create a timer to refresh account info

parent 8f2ad96c
Pipeline #15671 passed with stages
in 7 minutes and 24 seconds
......@@ -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;
......
......@@ -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)));
}
......
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