Hide featured assets on liquid testnet
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<div *ngIf="featuredAssets$ | async as featured; else loading" class="featuredBox">
|
||||
|
||||
<div *ngIf="featured.length === 0" class="text-center">
|
||||
<div i18n="liquid.no-featured.assets" class="symbol">No featured assets</div>
|
||||
</div>
|
||||
<div class="card" *ngFor="let group of featured">
|
||||
<ng-template [ngIf]="group.assets" [ngIfElse]="singleAsset">
|
||||
<a [routerLink]="['/assets/group' | relativeUrl, group.id]">
|
||||
|
||||
@@ -47,3 +47,9 @@
|
||||
.ticker {
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.symbol {
|
||||
color: grey;
|
||||
font-size: 1.5rem;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { ApiService } from '../../../services/api.service';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-assets-featured',
|
||||
@@ -12,10 +13,11 @@ export class AssetsFeaturedComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
private apiService: ApiService,
|
||||
private stateService: StateService,
|
||||
) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.featuredAssets$ = this.apiService.listFeaturedAssets$();
|
||||
this.featuredAssets$ = this.apiService.listFeaturedAssets$(this.stateService.network);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user