File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1717 deletecontainer : { value : false } ,
1818 outputFinished : { value : false } ,
1919 stream : { value : false } ,
20- createOptions : { value : "{}" } ,
21- startOptions : { value : "{}" } ,
22- createOptionsType : { } ,
23- startOptionsType : { }
20+ createOptions : { value : "{}" , required : false , validate :function ( v ) {
21+ var action = $ ( "#node-input-action" ) . length ? $ ( "#node-input-action" ) . val ( ) : "inspect" ;
22+
23+ if ( action === "run" && ! ( $ ( "#node-input-createOptions" ) . val ( ) instanceof object ) ) {
24+ return false ;
25+ }
26+ return true ;
27+ } } ,
28+ startOptions : { value : "{}" , required : false , validate :function ( v ) {
29+ var action = $ ( "#node-input-action" ) . length ? $ ( "#node-input-action" ) . val ( ) : "inspect" ;
30+ if ( action === "run" && ! ( $ ( "#node-input-createOptions" ) . val ( ) instanceof object ) ) {
31+ return false ;
32+ }
33+ return true ;
34+ } } ,
35+ createOptionsType : { required : false } ,
36+ startOptionsType : { required : false }
2437 } ,
2538 inputs : 1 ,
2639 outputs : 1 ,
You can’t perform that action at this time.
0 commit comments