Enable zats on display
This commit is contained in:
parent
42dbd88e28
commit
4f0253e6b2
4 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "zgo",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
|
|
|
@ -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">ⓩ {{(item.cost/price)*100000000 | number: '1.0-0'}}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -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: '',
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue