Compare commits

..

No commits in common. "87b65cab812c7dc4ec05929ef386b1a69b14f6a4" and "a51e2cd35851a6863dfe8f3b8f21733415480eb0" have entirely different histories.

4 changed files with 12 additions and 13 deletions

View File

@ -11,12 +11,11 @@ class CCPExecutionForm extends HTMLElement{
constructor(){
super()
this.#boot = document.querySelector("d4s-boot-2")
this.#rootdoc = this.attachShadow({ "mode" : "open"})
}
connectedCallback(){
this.#serviceurl = this.getAttribute("serviceurl")
this.#rootdoc = this.attachShadow({ "mode" : "open"})
this.connectNewExecutionRequest()
this.render()
const params = new URLSearchParams(window.location.search)
@ -30,7 +29,7 @@ class CCPExecutionForm extends HTMLElement{
this.showMethod()
}
}
static get observedAttributes() {
return ["method"];
}

View File

@ -325,13 +325,12 @@ class CCPEnumInputWidgetController extends CCPBaseInputWidgetController{
}
content(){
const opts = this.options.map(o=>`<option value="${o}">${o}</option>`).join("\n")
if(this.value.length <= 1){
const opts = this.options.map(o=>`<option value="${o}" ${ this.value.length && o === this.value[0] ? 'selected' : ''}>${o}</option>`).join("\n")
return `<select data-index="0" value="${this.value.length ? this.value[0] : ''}" class="my-2 form-control" placeholder="${this.title}" name="${this.name}" ${this.readonly ? 'disabled' : ''} ${this.required ? 'required' : ''}>${opts}</select>`
}
var out =
this.value.map((c,i)=>{
const opts = this.options.map(o=>`<option value="${o}" ${ this.value.length >= i && c === this.value[i] ? 'selected' : ''}>${o}</option>`).join("\n")
return `
<select data-index="${i}" value="${this.value.length ? this.value[0] : ''}" class="my-2 form-control" placeholder="${this.title}" name="${this.name}" ${this.readonly ? 'disabled' : ''} ${this.required ? 'required' : ''}>${opts}</select>
`

View File

@ -153,14 +153,15 @@ class CCPMethodEditorController extends HTMLElement{
super();
this.#boot = document.querySelector("d4s-boot-2")
this.#rootdoc = this.attachShadow({ "mode" : "open"})
}
connectedCallback(){
this.#serviceurl = this.getAttribute("serviceurl")
this.initMethod()
this.fetchInfrastructures()
this.connectNewEditRequest()
}
connectedCallback(){
}
connectNewEditRequest(){
document.addEventListener("neweditrequest", ev=>{

View File

@ -17,8 +17,11 @@ class CCPMethodList extends HTMLElement{
constructor(){
super()
this.#boot = document.querySelector("d4s-boot-2")
this.#serviceurl = this.getAttribute("serviceurl")
this.#rootdoc = this.attachShadow({ "mode" : "open"})
this.#archive = this.getAttribute("archive")
this.render()
this.fetchProcesses()
}
render(){
@ -164,9 +167,6 @@ class CCPMethodList extends HTMLElement{
connectedCallback(){
this.#allowedit = this.getAttribute("allow-edit") === "true"
this.#allowexecute = this.getAttribute("allow-execute") === "true"
this.#serviceurl = this.getAttribute("serviceurl")
this.render()
this.fetchProcesses()
}
fetchProcesses(){