moved input to proper place for init

This commit is contained in:
dcore94 2023-03-07 12:26:30 +01:00
parent 8c3ab8e7c1
commit b5e213769d
1 changed files with 16 additions and 16 deletions

View File

@ -21,21 +21,7 @@ class CCPMethodEditorController extends HTMLElement{
version : "1.0.0", version : "1.0.0",
jobControlOptions : "async-execute", jobControlOptions : "async-execute",
metadata : [], metadata : [],
inputs : { inputs : {},
runtime : {
id : "runtime",
title : "Runtime",
description : "The image of the runtime to use for method execution. This depends on the infrastructure specific protocol for interacting with registries.",
minOccurs : 1,
maxOccurs : 1,
schema : {
type : "string",
format : "url",
default : "",
readonly : true,
}
}
},
outputs : {}, outputs : {},
additionalParameters : { additionalParameters : {
parameters : [ parameters : [
@ -260,7 +246,21 @@ class CCPMethodEditorController extends HTMLElement{
this.#current = JSON.parse(JSON.stringify(this.#method_template)) this.#current = JSON.parse(JSON.stringify(this.#method_template))
this.#current.id = Math.abs((Math.random() * 10e11)|0) this.#current.id = Math.abs((Math.random() * 10e11)|0)
this.#current.metadata = [] this.#current.metadata = []
this.#tmp_inputs = [] this.#tmp_inputs = [
{
id : "runtime",
title : "Runtime",
description : "The image of the runtime to use for method execution. This depends on the infrastructure specific protocol for interacting with registries.",
minOccurs : 1,
maxOccurs : 1,
schema : {
type : "string",
format : "url",
default : "",
readonly : true,
}
}
]
this.#tmp_outputs = [] this.#tmp_outputs = []
} }