diff --git a/src/components/panelLeft.vue b/src/components/panelLeft.vue index 256c1271..245ca030 100644 --- a/src/components/panelLeft.vue +++ b/src/components/panelLeft.vue @@ -18,7 +18,11 @@
- + {{ plugin.icon || "extension" }} @@ -40,8 +44,17 @@ - - + + diff --git a/src/components/pluginComponents/formComponents/JsonForm.vue b/src/components/pluginComponents/formComponents/JsonForm.vue index dc21fc3f..aae12748 100644 --- a/src/components/pluginComponents/formComponents/JsonForm.vue +++ b/src/components/pluginComponents/formComponents/JsonForm.vue @@ -23,7 +23,7 @@
- + @@ -58,6 +58,16 @@ export default { 'route': { type: String, required: true + }, + 'isTask': { + type: Boolean, + required: false, + default: false + }, + 'submitLabel': { + type: String, + required: false, + default: "Submit" } }, @@ -75,7 +85,12 @@ export default { }, submitForm() { - this.newQuickRequest(this.formData) + if (this.isTask == true) { + this.newLongRequest(this.formData) + } + else { + this.newQuickRequest(this.formData) + } }, newQuickRequest: function(params) { @@ -100,8 +115,9 @@ export default { // Start the store polling TaskId for success return this.$store.dispatch('pollTask', [response.data.id, null, null]) }) - .then(() => { - console.log("Successfully finished task") + .then(response => { + console.log("Successfully finished task with response:") + console.log(response) }) .catch(error => { this.modalError(error) // Let mixin handle error