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