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

wait for the batchbuilder to signal its final cmdline before launching

parent 654403c5
No related branches found
No related tags found
2 merge requests!21New css dev,!10Dev
Pipeline #7453 passed
......@@ -28,6 +28,7 @@ export class LaunchDialogComponent implements OnInit {
@ViewChild('batchbuilderiframe', { read: ElementRef, static: false }) batchbuilderiframe: ElementRef;
setFocus: Boolean;
subscriptions: Subscription[];
launchNext: Boolean;
width: number;
height: number;
public appData: any;
......@@ -42,6 +43,7 @@ export class LaunchDialogComponent implements OnInit {
this.submitcmd = null;
this.appData = null
this.subscriptions = [];
this.launchNext = false;
}
......@@ -100,6 +102,10 @@ export class LaunchDialogComponent implements OnInit {
this.submitcmd = event.data['batchcmd'];
console.log('recieved a submit cmd');
console.log('recieveMessage'+this.submitcmd);
if (this.launchNext) {
this.launchThisCmd(this.submitcmd);
this.launchNext = false;
}
}
if (event.data['appData'] !== undefined) {
this.appData = event.data['appData'];
......@@ -116,8 +122,12 @@ export class LaunchDialogComponent implements OnInit {
// tell the batchbuilder iframe that lanch was selected
// This is the queue to save the values as defaults for next launch
this.batchbuilderiframe.nativeElement.contentWindow.postMessage('launch selected',"*");
this.launchNext=true;
}
launchThisCmd(cmd) {
let bi = new BatchInterface();
bi.submitcmd = this.submitcmd;
bi.submitcmd = cmd;
if (this.appData != null){
let appparams = this.appData;
this.tesService.submit(this.app,this.identity,bi,appparams);
......
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