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",
"version": "1.0.2",
"version": "1.0.3",
"scripts": {
"ng": "ng",
"start": "ng serve",

View file

@ -6,7 +6,8 @@
<td>{{item.name}}</td>
<td align="right">
<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>
</tr>
</table>

View file

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

View file

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