Skip to content

Commit

Permalink
Revert "add Pro mode button (#712)" (#713)
Browse files Browse the repository at this point in the history
This reverts commit fe78e05.
  • Loading branch information
skot authored Feb 16, 2025
1 parent fe78e05 commit 6d504fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
<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 && !proMode && [eASICModel.BM1366, eASICModel.BM1368, eASICModel.BM1370, eASICModel.BM1397].includes(ASICModel)">
<ng-container *ngIf="!devToolsOpen && [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">
Expand All @@ -25,7 +16,7 @@
</div>
</ng-container>

<ng-container *ngIf="devToolsOpen === true || proMode === true">
<ng-container *ngIf="devToolsOpen === true">

<div class="field grid p-fluid">
<label htmlFor="frequency" class="col-12 mb-2 md:col-2 md:mb-0">Frequency</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class EditComponent implements OnInit, OnDestroy {

public savedChanges: boolean = false;
public devToolsOpen: boolean = false;
public proMode: boolean = false;
public eASICModel = eASICModel;
public ASICModel!: eASICModel;

Expand Down

0 comments on commit 6d504fe

Please sign in to comment.