Skip to content

Commit

Permalink
✨ : do not show apply button if plan is up to date
Browse files Browse the repository at this point in the history
resolves #139
  • Loading branch information
juwit committed Jun 9, 2021
1 parent adede7a commit 02a9aeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/client/app/pages/stacks/job/job.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@
secondStepTitle() {
return this.job.type === 'RUN' ? 'apply' : 'destroy';
},
isPlanUpToDate() {
return this.job.steps[0] && this.job.steps[0].plan && this.job.steps[0].plan.upToDate;
},
isSecondStepDoable() {
return this.job.status
&& !this.isPlanUpToDate
&& !this.job.status.includes('PENDING')
&& !this.job.status.includes('STARTED')
&& !this.job.status.includes('FAILED')
Expand Down

0 comments on commit 02a9aeb

Please sign in to comment.