fixed setting from execution import
This commit is contained in:
parent
01c4d8cf07
commit
592cafbb3e
|
@ -304,9 +304,21 @@ class CCPExecutionForm extends HTMLElement{
|
|||
})
|
||||
}
|
||||
|
||||
//initOptionValues(request){
|
||||
// const autoarchiveoption = this.#rootdoc.querySelector("select[name='auto-archive-outputs']")
|
||||
// autoarchiveoption.checked = request.subscribers && request.subscribers.filter(s=>s.successUri === "http://registry:8080/executions/archive-to-folder").length === 1
|
||||
//}
|
||||
initOptionValues(request){
|
||||
const autoarchiveoption = this.#rootdoc.querySelector("input[name='auto-archive-outputs']")
|
||||
autoarchiveoption.checked = request.subscribers && request.subscribers.filter(s=>s.successUri === "http://registry:8080/executions/archive-to-folder").length === 1
|
||||
const archiveselector = this.#rootdoc.querySelector("select[name='archive-selector']")
|
||||
if(request.subscribers){
|
||||
if(request.subscribers.filter(s=>s.successUri === "http://registry:8080/executions/archive-to-folder").length === 1){
|
||||
archiveselector.value = "execution"
|
||||
}else if(request.subscribers.filter(s=>s.successUri === "http://registry:8080/executions/outputs/archive-to-folder").length === 1){
|
||||
archiveselector.value = "outputs"
|
||||
}
|
||||
}else{
|
||||
archiveselector.value = "none"
|
||||
}
|
||||
}
|
||||
|
||||
prepareFromExecution(exec){
|
||||
|
|
Loading…
Reference in New Issue