Skip to content

Commit

Permalink
Disable "open" and "pressurize" actions when fighters are launched
Browse files Browse the repository at this point in the history
  • Loading branch information
vyznev committed Jul 9, 2024
1 parent 9c4152f commit 4bd183c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/AirlockView.vue
Original file line number Diff line number Diff line change
@@ -272,13 +272,15 @@ export default {
return this.canDepressurize ? 'yellow' : 'gray'
},
canOpen () {
return this.pressure >= 1 && (this.box.status === 'closed' || this.box.status === 'closing') && !this.accessDenied
return this.pressure >= 1 && (this.box.status === 'closed' || this.box.status === 'closing')
&& !this.accessDenied && this.box.fighters !== 'active'
},
canClose () {
return this.box.status === 'open' && !this.accessDenied
},
canPressurize () {
return this.pressure < 1 && this.box.status !== 'pressurizing' && !this.accessDenied
return this.pressure < 1 && this.box.status !== 'pressurizing'
&& !this.accessDenied && this.box.fighters !== 'active'
},
canDepressurize () {
return this.pressure > 0 && this.box.status === 'closed' && !this.accessDenied

0 comments on commit 4bd183c

Please sign in to comment.