diff --git a/src/main/resources/templates/job.html b/src/main/resources/templates/job.html index 58bf2d054..97b4547ff 100644 --- a/src/main/resources/templates/job.html +++ b/src/main/resources/templates/job.html @@ -144,15 +144,15 @@

Stack {{stack.name}}

secondStepTitle: () => store.state.job.type === 'RUN' ? 'apply' : 'destroy', isSecondStepDoable: () => { if (editionMode) return false; - return store.state.job.status.indexOf('STARTED') < 0 && + return store.state.job.status !== null && + store.state.job.status.indexOf('STARTED') < 0 && store.state.job.status.indexOf('FAILED') < 0 && store.state.job.status.indexOf('APPLY') < 0; } }, methods: { - applyJob: function () { - planOrApplyJob('APPLY'); - } + applyJob: () => planOrApplyJob('APPLY'), + retryJob: () => planOrApplyJob('retry'), } }); });