mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 21:32:52 +01:00
* fix #374 Issue 1 : Fallback Stratum Password * fix #388 : Refactor restart button into a list item and update styles for proper spacing.
This commit is contained in:
parent
7c4f8441f1
commit
7589e6ed53
@ -57,8 +57,13 @@
|
||||
</div>
|
||||
<div class="field grid p-fluid">
|
||||
<label htmlFor="fallbackStratumPassword" class="col-12 mb-2 md:col-2 md:mb-0">Fallback Stratum Password:</label>
|
||||
<div class="col-12 md:col-10">
|
||||
<input pInputText id="fallbackStratumPassword" formControlName="fallbackStratumPassword" type="password" />
|
||||
<div class="col-12 md:col-10 p-input-icon-right">
|
||||
<i *ngIf="form.get('fallbackStratumPassword')?.dirty" class="pi"
|
||||
[ngClass]="{'pi-eye': !showFallbackStratumPassword, 'pi-eye-slash': showFallbackStratumPassword}"
|
||||
(click)="toggleFallbackStratumPasswordVisibility()" style="cursor: pointer;"></i>
|
||||
<input pInputText id="fallbackStratumPassword" formControlName="fallbackStratumPassword"
|
||||
[type]="showFallbackStratumPassword ? 'text' : 'password'"
|
||||
placeholder="Enter fallback stratum password" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -218,4 +218,14 @@ export class EditComponent implements OnInit {
|
||||
this.showStratumPassword = !this.showStratumPassword;
|
||||
}
|
||||
|
||||
showWifiPassword: boolean = false;
|
||||
toggleWifiPasswordVisibility() {
|
||||
this.showWifiPassword = !this.showWifiPassword;
|
||||
}
|
||||
|
||||
showFallbackStratumPassword: boolean = false;
|
||||
toggleFallbackStratumPasswordVisibility() {
|
||||
this.showFallbackStratumPassword = !this.showFallbackStratumPassword;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,6 +5,8 @@
|
||||
</ng-container>
|
||||
|
||||
|
||||
<p-button (click)="restart()" id="restart" label="Restart" severity="danger"></p-button>
|
||||
<li id="restart-container">
|
||||
<p-button (click)="restart()" id="restart" label="Restart" severity="danger"></p-button>
|
||||
</li>
|
||||
|
||||
</ul>
|
@ -135,6 +135,10 @@
|
||||
}
|
||||
|
||||
#restart {
|
||||
padding: 2rem 1rem;
|
||||
display: block;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#restart-container {
|
||||
margin: 2rem 1rem;
|
||||
display: flex;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user