feat: cashier transactions list page (#1061)

Fixes: #760
This commit is contained in:
Karan Takalkar
2020-07-11 23:49:42 +05:30
committed by GitHub
parent 6b688b98dc
commit e74fdcf27b
10 changed files with 305 additions and 10 deletions
@@ -44,7 +44,8 @@
<button class="cashier-action-button" mat-raised-button color="warn" matTooltip="Settle Cash">
<i class="fa fa-arrow-down"></i>
</button>
<button class="cashier-action-button" mat-raised-button color="primary" matTooltip="View Transactions">
<button class="cashier-action-button" mat-raised-button color="primary" matTooltip="View Transactions"
(click)="routeEdit($event)" [routerLink]="[cashier.id, 'transactions']">
<i class="fa fa-eye"></i>
</button>
</td>
@@ -32,7 +32,6 @@ export class CashiersComponent implements OnInit {
constructor(private route: ActivatedRoute) {
this.route.data.subscribe(( data: { cashiersData: any }) => {
this.cashiersData = data.cashiersData.cashiers;
console.log(this.cashiersData);
});
}
@@ -60,4 +59,12 @@ export class CashiersComponent implements OnInit {
this.dataSource.sort = this.sort;
}
/**
* Stops the propagation to view pages.
* @param $event Mouse Event
*/
routeEdit($event: MouseEvent) {
$event.stopPropagation();
}
}