fixed naming
This commit is contained in:
parent
3e1dd1bf6d
commit
8407f59013
|
@ -208,7 +208,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
const link = ev.target.parentElement.querySelector("input").value
|
const link = ev.target.parentElement.querySelector("input").value
|
||||||
if(link){
|
if(link){
|
||||||
if(confirm("Please confirm importing of execution from link?")){
|
if(confirm("Please confirm importing of execution from link?")){
|
||||||
this.fromArchive(link)
|
this.fromArchiveFolder(link)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -425,7 +425,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
}).catch(err=>{ alert(err)})
|
}).catch(err=>{ alert(err)})
|
||||||
}
|
}
|
||||||
|
|
||||||
toArchive(id){
|
toArchiveFolder(id){
|
||||||
this.#boot.secureFetch(`${this.#serviceurl}/executions/${id}/archive-to-folder`, { method: "POST" })
|
this.#boot.secureFetch(`${this.#serviceurl}/executions/${id}/archive-to-folder`, { method: "POST" })
|
||||||
.then(reply =>{
|
.then(reply =>{
|
||||||
if (!reply.ok) {
|
if (!reply.ok) {
|
||||||
|
@ -434,7 +434,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
}).catch(err=>{ alert(err)})
|
}).catch(err=>{ alert(err)})
|
||||||
}
|
}
|
||||||
|
|
||||||
toOutputsArchive(id){
|
toOutputsArchiveFolder(id){
|
||||||
this.#boot.secureFetch(`${this.#serviceurl}/executions/${id}/outputs/archive-to-folder`, { method: "POST" })
|
this.#boot.secureFetch(`${this.#serviceurl}/executions/${id}/outputs/archive-to-folder`, { method: "POST" })
|
||||||
.then(reply =>{
|
.then(reply =>{
|
||||||
if (!reply.ok) {
|
if (!reply.ok) {
|
||||||
|
@ -443,7 +443,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
}).catch(err=>{ alert(err)})
|
}).catch(err=>{ alert(err)})
|
||||||
}
|
}
|
||||||
|
|
||||||
fromArchive(url){
|
fromArchiveFolder(url){
|
||||||
if(url){
|
if(url){
|
||||||
this.#boot.secureFetch(`${this.#serviceurl}/executions/archive?url=${url}`)
|
this.#boot.secureFetch(`${this.#serviceurl}/executions/archive?url=${url}`)
|
||||||
.then(reply =>{
|
.then(reply =>{
|
||||||
|
|
Loading…
Reference in New Issue