🧹 clean up editor based on #1418 (#2010)

* clean up editor based on #1418

* remove unused ref

* address comment on guard style
This commit is contained in:
Mutasem Aldmour
2021-07-23 17:50:47 +02:00
committed by GitHub
parent 5602929210
commit a9550202df
19 changed files with 8 additions and 54 deletions

View File

@@ -148,7 +148,6 @@ import { MessageBoxInputData } from 'element-ui/types/message-box';
import {
IExecutionResponse,
IExecutionsStopData,
IWorkflowDataUpdate,
IMenuItem,
} from '../Interface';
@@ -336,7 +335,7 @@ export default mixins(
try {
this.stopExecutionInProgress = true;
const stopData: IExecutionsStopData = await this.restApi().stopCurrentExecution(executionId);
await this.restApi().stopCurrentExecution(executionId);
this.$showMessage({
title: 'Execution stopped',
message: `The execution with the id "${executionId}" got stopped!`,
@@ -405,9 +404,8 @@ export default mixins(
return;
}
let result;
try {
result = await this.restApi().deleteWorkflow(this.currentWorkflow);
await this.restApi().deleteWorkflow(this.currentWorkflow);
} catch (error) {
this.$showError(error, 'Problem deleting the workflow', 'There was a problem deleting the workflow:');
return;