Skip to content

Commit 1781519

Browse files
committed
fix: issue #61, properly configured
1 parent 69ac165 commit 1781519

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/docker-container-actions.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,23 @@
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,

0 commit comments

Comments
 (0)