Skip to content

Commit

Permalink
fix: issue #61, properly configured
Browse files Browse the repository at this point in the history
  • Loading branch information
naimo84 committed May 14, 2024
1 parent 69ac165 commit 1781519
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/docker-container-actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,23 @@
deletecontainer: { value: false },
outputFinished: { value: false },
stream: { value: false },
createOptions: { value: "{}" },
startOptions: { value: "{}" },
createOptionsType: {},
startOptionsType: {}
createOptions: { value: "{}", required: false, validate:function(v) {
var action=$("#node-input-action").length ? $("#node-input-action").val() : "inspect";

if(action==="run" && !($("#node-input-createOptions").val() instanceof object) ){
return false;
}
return true;
} },
startOptions: { value: "{}", required: false, validate:function(v) {
var action=$("#node-input-action").length ? $("#node-input-action").val() : "inspect";
if(action==="run" && !($("#node-input-createOptions").val() instanceof object) ){
return false;
}
return true;
} },
createOptionsType: { required: false},
startOptionsType: { required: false}
},
inputs: 1,
outputs: 1,
Expand Down

0 comments on commit 1781519

Please sign in to comment.