Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #374 Issue 1 : Fallback Stratum Password #379

Merged
merged 6 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
10 changes: 10 additions & 0 deletions main/http_server/axe-os/src/app/components/edit/edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
}

#restart {
padding: 2rem 1rem;
display: block;
display: inline-block;
}

#restart-container {
margin: 2rem 1rem;
display: flex;
}
Loading