fix : repeat works properly
This commit is contained in:
parent
03022ad84d
commit
9f59bb3d1b
@ -196,8 +196,12 @@ Date : ${currentDate}
|
||||
.catch(error => {
|
||||
console.error("❌ Repeat ticket print failed:", error);
|
||||
});
|
||||
this.erase(); // Clear selections after printing
|
||||
|
||||
// Hide Confirm and Print buttons before clearing selections
|
||||
this.showConfirmButton = false;
|
||||
this.showPrintButton = false;
|
||||
|
||||
this.erase(); // Clear selections after hiding buttons
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<!-- Left Group: CALC, ERASE, BOX, FIELD -->
|
||||
<div class="d-flex flex-wrap justify-content-center gap-2 first">
|
||||
<button class="btn btn-dark one" (click)="openCalculator()">CALC</button>
|
||||
<button class="btn btn-dark two" (click)="eraseAndReload()">ERASE</button>
|
||||
<button class="btn btn-dark two" (click)="erase()">ERASE</button>
|
||||
<button
|
||||
class="btn btn-secondary three"
|
||||
(click)="toggleBoxMode()"
|
||||
|
||||
@ -1067,10 +1067,10 @@ try {
|
||||
this.selectionService.clearSelections();
|
||||
this.resetSelections();
|
||||
}
|
||||
eraseAndReload() {
|
||||
this.erase();
|
||||
window.location.reload();
|
||||
}
|
||||
// eraseAndReload() {
|
||||
// this.erase();
|
||||
// // window.location.reload();
|
||||
// }
|
||||
|
||||
|
||||
resetSelections() {
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
Password is required.
|
||||
</small>
|
||||
<small *ngIf="loginForm.get('password')?.errors?.['pattern']">
|
||||
Must be exactly 6 digits.
|
||||
Must be exactly 7 digits.
|
||||
</small>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user