Fix item price in wide screens

This commit is contained in:
Rene Vergara 2022-07-20 09:25:51 -05:00
parent 25c6e81ebc
commit fb5c76fa03
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ import { ItemAddComponent } from '../item-add/item-add.component';
export class ItemListComponent implements OnInit{ export class ItemListComponent implements OnInit{
@Input() zecPrice: number = 1; @Input() zecPrice: number;
public items: Item[] = []; public items: Item[] = [];
@ -75,6 +75,7 @@ export class ItemListComponent implements OnInit{
this.items = items; this.items = items;
}); });
}); });
this.zecPrice = 1;
} }
ngOnInit(){ ngOnInit(){

View file

@ -34,7 +34,7 @@
<table cellspacing="0" width="75%"> <table cellspacing="0" width="75%">
<tr> <tr>
<td> <td>
<app-item-list></app-item-list> <app-item-list [zecPrice]="price"></app-item-list>
</td> </td>
<td> <td>
<app-order></app-order> <app-order></app-order>