Enable zats on display

This commit is contained in:
Rene Vergara 2022-03-07 14:53:10 -06:00
parent 42dbd88e28
commit 4f0253e6b2
4 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "zgo", "name": "zgo",
"version": "1.0.2", "version": "1.0.3",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",

View file

@ -6,7 +6,8 @@
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td align="right"> <td align="right">
<p class="price">{{item.cost | currency: getCurrency() }}</p> <p class="price">{{item.cost | currency: getCurrency() }}</p>
<p class="price"><img class="icon" src="/assets/spartan-zec.png" width="12px" />{{(item.cost/price) | number: '1.0-6'}}</p> <p class="price" *ngIf="!owner.zats"><img class="icon" src="/assets/spartan-zec.png" width="12px" />{{(item.cost/price) | number: '1.0-6'}}</p>
<p class="price" *ngIf="owner.zats">&#x24e9; {{(item.cost/price)*100000000 | number: '1.0-0'}}</p>
</td> </td>
</tr> </tr>
</table> </table>

View file

@ -20,7 +20,7 @@ import { ItemAddComponent } from '../item-add/item-add.component';
export class ItemListComponent implements OnInit{ export class ItemListComponent implements OnInit{
public items: Item[] = []; public items: Item[] = [];
private owner: Owner = { owner: Owner = {
_id: '', _id: '',
name: '', name: '',
address: '', address: '',

View file

@ -111,6 +111,7 @@ export class ViewerComponent implements OnInit {
//console.log('Saving settings', val); //console.log('Saving settings', val);
this.userService.updateOwner(val); this.userService.updateOwner(val);
this.fullnodeService.getPrice(val.currency); this.fullnodeService.getPrice(val.currency);
this.loginCheck();
} }
}); });
} }