diff --git a/frontend/src/business/components/api/automation/scenario/DebugRun.vue b/frontend/src/business/components/api/automation/scenario/DebugRun.vue index b94ccd5461..630a4a7a3c 100644 --- a/frontend/src/business/components/api/automation/scenario/DebugRun.vue +++ b/frontend/src/business/components/api/automation/scenario/DebugRun.vue @@ -47,6 +47,7 @@ import {saveScenario} from "@/business/components/api/automation/api-automation" saveScenario('/api/automation/run/debug', reqObj, this.runData.hashTree, (response) => { this.runId = response.data; this.$emit('runRefresh', {}); + this.$emit("changeDebugButton"); }); }, } diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index d92cdd4c7d..a16a12698d 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -146,7 +146,7 @@ {{ $t('api_test.request.debug') }} + @click="runDebug" :loading="buttonIsLoading">{{ $t('api_test.request.debug') }} @@ -231,6 +231,7 @@ { + this.buttonIsLoading = true; if (valid) { let definition = JSON.parse(JSON.stringify(this.currentScenario)); definition.hashTree = this.scenarioDefinition; @@ -915,15 +918,21 @@ export default { onSampleError: this.onSampleError, }; this.reportId = getUUID().substring(0, 8); + // this.editScenario().then(() => { // // }) }) }) + }else { + this.buttonIsLoading = false; } }) }, + changeDebugButton(){ + this.buttonIsLoading = false; + }, getEnvironments() { if (this.projectId) { this.$get('/api/environment/list/' + this.projectId, response => {