Hide featured assets on liquid testnet

This commit is contained in:
natsoni
2024-03-24 15:41:18 +09:00
parent 21b3e4071c
commit d4749cfc82
4 changed files with 15 additions and 4 deletions

View File

@@ -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]">

View File

@@ -47,3 +47,9 @@
.ticker {
color: grey;
}
.symbol {
color: grey;
font-size: 1.5rem;
font-style: italic;
}

View File

@@ -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);
}
}