Tweaks AI door open and close buttons

This commit is contained in:
JJRcop
2017-11-17 13:52:07 -05:00
committed by CitadelStationBot
parent 43f49c74ee
commit 244e823558
2 changed files with 13 additions and 9 deletions
+10 -8
View File
@@ -66,14 +66,6 @@ component.exports = {
</ui-section>
</ui-display>
<ui-display title='Access & Door Control'>
<ui-section label='Open'>
{{#if data.welded}}
[ <span class="bad">Door has been welded</span> ]
{{/if}}
<div style='float:right'>
<ui-button icon='sign-out' action='open-close' style='{{data.density ? "selected" : ""}}'>Toggle</ui-button>
</div>
</ui-section>
<ui-section label='ID Scan'>
{{#if !data.wires.id_scanner}}
[ <span class="bad">Wires have been cut</span> ]
@@ -126,4 +118,14 @@ component.exports = {
<ui-button state='{{!data.wires.timing}}' icon='close' action='speed-off' style='{{data.speed ? "" : "selected"}}'>Disabled</ui-button>
</div>
</ui-section>
<br />
<ui-section label='Door control'>
{{#if data.locked || data.welded}}
[ <span class="bad">Door is {{(data.locked ? "bolted" : "") + (data.locked && data.welded ? " and " : "") + (data.welded ? "welded" : "")}}</span> ]
{{/if}}
<div style='float:right'>
<ui-button state='{{(data.locked || data.welded) || (data.opened && "disabled")}}' icon='sign-out' action='open-close'>Open door</ui-button>
<ui-button state='{{(data.locked || data.welded) || (!data.opened && "disabled")}}' icon='sign-in' action='open-close'>Close door</ui-button>
</div>
</ui-section>
</ui-display>