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

create a timer to refresh account info

parent 8f2ad96c
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!89Test,!88Dev
Pipeline #15671 passed
......@@ -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)));
}
......
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