mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-29 11:11:45 +01:00
add Pro mode button (#712)
* feat: add tooltip for pwm invert and flip screen * feat: add Pro Mode Button
This commit is contained in:
parent
91f302c744
commit
fe78e05611
@ -1,6 +1,15 @@
|
||||
<ng-container *ngIf="form != null">
|
||||
<div class="flex justify-content-end align-items-center mb-3">
|
||||
<i class="pi pi-info-circle mr-2" style="font-size: 1rem;"
|
||||
pTooltip="Enables advanced settings for custom frequency and voltage values. Overclocking might destroy your device!"></i>
|
||||
<button pButton
|
||||
[label]="proMode ? 'Disable Pro Mode' : 'Enable Pro Mode'"
|
||||
[class]="proMode ? 'p-button-danger' : 'p-button-primary'"
|
||||
(click)="proMode = !proMode">
|
||||
</button>
|
||||
</div>
|
||||
<form [formGroup]="form">
|
||||
<ng-container *ngIf="!devToolsOpen && [eASICModel.BM1366, eASICModel.BM1368, eASICModel.BM1370, eASICModel.BM1397].includes(ASICModel)">
|
||||
<ng-container *ngIf="!devToolsOpen && !proMode && [eASICModel.BM1366, eASICModel.BM1368, eASICModel.BM1370, eASICModel.BM1397].includes(ASICModel)">
|
||||
<div class="field grid p-fluid">
|
||||
<label class="col-12 mb-2 md:col-2 md:mb-0" htmlFor="frequency">Frequency</label>
|
||||
<div class="col-12 md:col-10">
|
||||
@ -16,7 +25,7 @@
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="devToolsOpen === true">
|
||||
<ng-container *ngIf="devToolsOpen === true || proMode === true">
|
||||
|
||||
<div class="field grid p-fluid">
|
||||
<label htmlFor="frequency" class="col-12 mb-2 md:col-2 md:mb-0">Frequency</label>
|
||||
|
@ -21,6 +21,7 @@ export class EditComponent implements OnInit, OnDestroy {
|
||||
|
||||
public savedChanges: boolean = false;
|
||||
public devToolsOpen: boolean = false;
|
||||
public proMode: boolean = false;
|
||||
public eASICModel = eASICModel;
|
||||
public ASICModel!: eASICModel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user