Add possibility to retry with currently saved workflow

This commit is contained in:
Jan Oberhauser
2019-12-12 18:12:38 -06:00
parent b389854046
commit 359dc3b485
4 changed files with 42 additions and 8 deletions

View File

@@ -263,8 +263,14 @@ export const restApi = Vue.extend({
},
// Returns the execution with the given name
retryExecution: (id: string): Promise<boolean> => {
return self.restApi().makeRestApiRequest('POST', `/executions/${id}/retry`);
retryExecution: (id: string, loadWorkflow?: boolean): Promise<boolean> => {
let sendData;
if (loadWorkflow === true) {
sendData = {
loadWorkflow: true,
};
}
return self.restApi().makeRestApiRequest('POST', `/executions/${id}/retry`, sendData);
},
// Returns all saved executions