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
5c865999
Commit
5c865999
authored
Jul 17, 2019
by
Chris Hines
Browse files
wait for the batchbuilder to signal its final cmdline before launching
parent
654403c5
Pipeline
#7453
passed with stages
in 2 minutes and 55 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/app/launch-dialog/launch-dialog.component.ts
View file @
5c865999
...
...
@@ -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
.
submit
cmd
;
bi
.
submitcmd
=
cmd
;
if
(
this
.
appData
!=
null
){
let
appparams
=
this
.
appData
;
this
.
tesService
.
submit
(
this
.
app
,
this
.
identity
,
bi
,
appparams
);
...
...
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