Locked cooling controls
This commit is contained in:
parent
e6b2f4ce88
commit
709c00bfe2
@ -1,8 +1,11 @@
|
|||||||
<div class="fill-height p-3" style="background-color: #b52e3c !important;">
|
<div class="fill-height p-3" style="background-color: #b52e3c !important;">
|
||||||
<div style="max-width: 1000px;">
|
<div style="max-width: 1000px;">
|
||||||
<h1 class="text-white">Powerwall: {{batteryService.charge | round}} V</h1>
|
<h1>Powerwall: {{batteryService.charge | round}} V</h1>
|
||||||
<h4 class="text-white mt-3 mb-0">Fan</h4>
|
<div class="d-flex align-content-center">
|
||||||
<mat-button-toggle-group class="mb-3" [ngModel]="batteryService.relayMode" (change)="batteryService.setRelayMode($event.value)">
|
<div *ngIf="locked" class="mr-1"><mat-icon>lock</mat-icon></div>
|
||||||
|
<div><h5>Cooling Fans</h5></div>
|
||||||
|
</div>
|
||||||
|
<mat-button-toggle-group class="mb-3" [ngModel]="batteryService.relayMode" (change)="batteryService.setRelayMode($event.value)" [disabled]="locked">
|
||||||
<mat-button-toggle value="null">Auto</mat-button-toggle>
|
<mat-button-toggle value="null">Auto</mat-button-toggle>
|
||||||
<mat-button-toggle value="true">On</mat-button-toggle>
|
<mat-button-toggle value="true">On</mat-button-toggle>
|
||||||
<mat-button-toggle value="false">Off</mat-button-toggle>
|
<mat-button-toggle value="false">Off</mat-button-toggle>
|
||||||
|
@ -8,6 +8,7 @@ import {AppComponent} from '../app.component';
|
|||||||
})
|
})
|
||||||
export class BatteryComponent implements OnInit {
|
export class BatteryComponent implements OnInit {
|
||||||
|
|
||||||
|
locked = true;
|
||||||
scheme = {
|
scheme = {
|
||||||
name: 'cool',
|
name: 'cool',
|
||||||
selectable: true,
|
selectable: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user