Ports improved and simplier fire alarms.

This commit is contained in:
Ghommie
2019-12-12 22:44:20 +01:00
parent f637e1e060
commit 4502d7b795
13 changed files with 5170 additions and 5204 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,29 +0,0 @@
<script>
component.exports = {
computed: {
seclevelState () {
switch (this.get('data.seclevel')) {
case 'blue': return 'average'
case 'red': return 'bad'
case 'delta': return 'bad bold'
default: return 'good'
}
}
}
}
</script>
<ui-display>
<ui-section label='Alert Level'>
<span class='{{seclevelState}}'>{{text.titleCase(data.seclevel)}}</span>
</ui-section>
<ui-section label='Controls'>
<ui-button icon='{{data.alarm ? "close" : "bell-o"}}' action='{{data.alarm ? "reset" : "alarm"}}'>
{{data.alarm ? "Reset" : "Activate"}}</ui-button>
</ui-section>
{{#if data.emagged}}
<ui-section label='Warning'>
<span class='bad bold'>Safety measures offline. Device may exhibit abnormal behavior.</span>
</ui-section>
{{/if}}
</ui-display>