diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 921293e..faf830d 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -32,7 +32,7 @@ class CCPExecutionForm extends HTMLElement{ connectNewExecutionRequest(){ document.addEventListener("newexecutionrequest", ev=>{ - if(window.confirm("Confirm overwrite of execution form?")){ + if(window.confirm("Please confirm overwrite of execution form?")){ this.setAttribute("method", ev.detail) this.parentElement.scrollIntoViewIfNeeded() } diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index e8a5d63..3ae687b 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -188,7 +188,7 @@ class CCPExecutionHistory extends HTMLElement { this.#archiveupload.addEventListener("click", ev=>{ const link = ev.target.parentElement.querySelector("input").value if(link){ - if(confirm("Confirm importing of execution from link?")){ + if(confirm("Please confirm importing of execution from link?")){ this.fromArchive(link) } } @@ -419,7 +419,7 @@ class CCPExecutionHistory extends HTMLElement { if(ev.dataTransfer && ev.dataTransfer.files && ev.dataTransfer.files.length){ const files = Array.prototype.slice.call(ev.dataTransfer.files) const zips = files.filter(f=>f.type === "application/zip") - if(confirm("Confirm import of execution files?")){ + if(confirm("Please confirm import of execution files?")){ this.importExecutions(files) } } @@ -480,7 +480,7 @@ class CCPExecutionHistory extends HTMLElement { }, on_click: ev=>{ if(ev.target.getAttribute("name") === "delete"){ - if(window.confirm("Confirm deletion of this execution?")){ + if(window.confirm("Please confirm deletion of this execution?")){ const id = ev.currentTarget.getAttribute("data-index") this.deleteExecution(id) } @@ -498,7 +498,7 @@ class CCPExecutionHistory extends HTMLElement { this.reexecute(id, 1) } if(ev.target.getAttribute("name") === "archive"){ - if(confirm("Confirm aarchiving of execution to workspace?")){ + if(confirm(" Please confirm aarchiving of execution to workspace?")){ const id = ev.currentTarget.getAttribute("data-index") this.toArchive(id) } diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index 6c64892..afd066a 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -184,7 +184,7 @@ class CCPMethodEditorController extends HTMLElement{ if(this.#locked) return; if(this.#current != null){ this.adoptTemporaries() - const text = `Confirm ${this.#isupdate ? "updating" : "creation"} of ${this.#current.title} version ${this.#current.version}` + const text = `Please confirm ${this.#isupdate ? "updating" : "creation"} of ${this.#current.title} version ${this.#current.version}` if(window.confirm(text)){ this.lockRender() const url = this.#serviceurl + "/methods" @@ -214,7 +214,7 @@ class CCPMethodEditorController extends HTMLElement{ deleteMethod(){ if(this.#locked) return; if(this.#current != null){ - const text = `Confirm deletion of ${this.#current.title} version ${this.#current.version}` + const text = `Please confirm deletion of ${this.#current.title} version ${this.#current.version}` if(window.confirm(text)){ this.lockRender() const url = this.#serviceurl + "/methods/" + this.#current.id diff --git a/ccp/js/methodlistcontroller.js b/ccp/js/methodlistcontroller.js index 8e1a3b9..efc1f86 100644 --- a/ccp/js/methodlistcontroller.js +++ b/ccp/js/methodlistcontroller.js @@ -99,12 +99,12 @@ class CCPMethodList extends HTMLElement{
-
-
+
+
- Methods + Methods
-
+
@@ -154,7 +154,7 @@ class CCPMethodList extends HTMLElement{ this.#archiveupload.addEventListener("click", ev=>{ const link = ev.target.parentElement.querySelector("input").value if(link){ - if(confirm("Confirm importing of method from link?")){ + if(confirm("Please confirm importing of method from link?")){ this.fromArchive(link) } } @@ -331,7 +331,7 @@ class CCPMethodList extends HTMLElement{ if(ev.dataTransfer && ev.dataTransfer.files && ev.dataTransfer.files.length){ const files = Array.prototype.slice.call(ev.dataTransfer.files) const jsons = files.filter(f=>f.type === "application/json") - if(confirm("Confirm import of method files?")){ + if(confirm("Please confirm import of method files?")){ this.importMethods(files) } ev.preventDefault() @@ -392,7 +392,7 @@ class CCPMethodList extends HTMLElement{ const event = new CustomEvent('neweditrequest', { detail: ev.currentTarget.bss_input.data }); document.dispatchEvent(event) }else if(ev.target.getAttribute("name") === "archive"){ - if(confirm("Confirm archiving of method to workspace?")){ + if(confirm("Please confirm archiving of method to workspace?")){ this.toArchive(id) } } diff --git a/ccp/js/outputwidgeteditorcontroller.js b/ccp/js/outputwidgeteditorcontroller.js index 3620624..336c4e6 100644 --- a/ccp/js/outputwidgeteditorcontroller.js +++ b/ccp/js/outputwidgeteditorcontroller.js @@ -111,7 +111,7 @@ class CCPOutputWidgetEditorController extends HTMLElement { return `
- +
`