Commit 8e531fc4 authored by Matteo Massarotto's avatar Matteo Massarotto
Browse files

Changed monitoring FE files for update instance

parent 1ec785f8
......@@ -154,8 +154,8 @@ export default defineComponent({
else return this.$http.post(process.env.VUE_APP_DATA_PREPARATION_PATH + '1.0/process', processDefinition)
},
saveOrUpdateInstance(processId, datasetDefinition) {
if (this.instanceId && this.instanceId != '') return this.$http.patch(process.env.VUE_APP_DATA_PREPARATION_PATH + `1.0/instance/${this.instanceId}`, datasetDefinition)
else return this.$http.patch(process.env.VUE_APP_DATA_PREPARATION_PATH + '1.0/process/' + processId + '/instance', datasetDefinition)
if (this.instanceId && this.instanceId != '') return this.$http.post(process.env.VUE_APP_DATA_PREPARATION_PATH + `1.0/instance/${this.instanceId}`, datasetDefinition)
else return this.$http.post(process.env.VUE_APP_DATA_PREPARATION_PATH + '1.0/process/' + processId + '/instance', datasetDefinition)
},
createDatasetDefinition() {
let toReturn = {}
......
......@@ -431,7 +431,7 @@ export default defineComponent({
async updateDatasetAndSave(newConfig) {
this.showMonitoring = false
await this.$http.patch(process.env.VUE_APP_DATA_PREPARATION_PATH + '1.0/instance/' + newConfig.instanceId, { config: newConfig.config }).then(
await this.$http.patch(process.env.VUE_APP_DATA_PREPARATION_PATH + '1.0/instance/' + newConfig.instanceId, { config: newConfig.config },{ headers: { Accept: 'application/json, */*'} }).then(
() => {
this.loadDataset(this.selectedDataset.id)
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment