mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add Plc.IsEnabled() method and refactor places that were checking settings directly to use it instead.
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
<p><span class="label label-scoring" id="refereeScoreStatus">Referee</span><br />
|
||||
<span class="label label-scoring" id="redScoreStatus"></span><br />
|
||||
<span class="label label-scoring" id="blueScoreStatus"></span></p>
|
||||
{{if .EventSettings.PlcAddress}}
|
||||
{{if .PlcIsEnabled}}
|
||||
<p>PLC Status</p>
|
||||
<p>
|
||||
<span class="label label-scoring" id="plcStatus"></span><br />
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if eq .EventSettings.PlcAddress ""}}
|
||||
{{if not .PlcIsEnabled}}
|
||||
<div id="elements">
|
||||
<div class="scoring-section">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user