mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-09 12:29:59 +02:00
added some danger messages for out of bound values on the home screen
This commit is contained in:
parent
fc0e49e5d5
commit
2985db4dd0
@ -68,11 +68,12 @@
|
||||
<table *ngIf="info$ | async as info; else loading">
|
||||
<tr>
|
||||
<td>Power Consumption:</td>
|
||||
<td>{{info.power | number: '1.2-2'}} <small>W</small></td>
|
||||
<td>{{info.power | number: '1.2-2'}} <small>W</small> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Input Voltage:</td>
|
||||
<td>{{info.voltage | number: '0.0-0'}} <small>mV</small></td>
|
||||
<td>{{info.voltage | number: '0.0-0'}} <small>mV</small> <span class="danger"
|
||||
*ngIf="info.voltage < 4950"> Danger: Low voltage</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Input Current:</td>
|
||||
@ -96,7 +97,8 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Chip Temperature:</td>
|
||||
<td>{{info.temp}} <small>C</small></td>
|
||||
<td>{{info.temp}} <small>C</small> <span class="danger" *ngIf="info.temp >= 70"> Danger:
|
||||
High Temperature</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -48,4 +48,9 @@ table>tr>td {
|
||||
line-break: anywhere;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.danger {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user