Skip to content

Commit

Permalink
Disable upgrade buttong when upgrading is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
rautamik committed Nov 20, 2024
1 parent 96cccb8 commit eee8add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/ingame/ajax/object.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<div class="build-it_wrap">
<div class="ipiHintable" data-ipi-hint="ipiTechnologyUpgradedeuteriumSynthesizer">
<button class="upgrade"
@if (!$enough_resources || !$requirements_met || $build_queue_max || !$max_build_amount || $research_lab_upgrading)
@if (!$enough_resources || !$requirements_met || $build_queue_max || !$max_build_amount || $research_lab_upgrading || ($object->machine_name === 'research_lab' && $research_in_progress))
disabled
@else
@endif
Expand Down
1 change: 1 addition & 0 deletions resources/views/ingame/facilities/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
@elseif (!$building->requirements_met)
@elseif (!$building->enough_resources)
@elseif ($build_queue_max)
@elseif ($building->research_in_progress && $building->object->machine_name == 'research_lab')
@else
<button
class="upgrade tooltip hideOthers js_hideTipOnMobile"
Expand Down

0 comments on commit eee8add

Please sign in to comment.