master #14

Merged
m.lettere merged 15 commits from master into prod 2024-06-04 18:54:59 +02:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 8407f59013 - Show all commits

View File

@ -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 =>{