Moving ticker to circulating amount

This commit is contained in:
softsimon
2022-02-16 17:32:12 +04:00
parent 219c1a8615
commit b6f89b1a3e
6 changed files with 26 additions and 19 deletions

View File

@@ -72,7 +72,6 @@
<td class="asset-title">
<a [routerLink]="['/assets/asset/' | relativeUrl, group.asset]">{{ group.name }}</a>
</td>
<td class="asset-ticker d-none d-md-table-cell">{{ group.ticker }}</td>
<td class="circulating-amount"><app-asset-circulation [assetId]="group.asset"></app-asset-circulation></td>
</tr>
</tbody>

View File

@@ -293,10 +293,6 @@
text-align: left;
}
.asset-ticker {
color: grey;
}
.asset-icon {
width: 65px;
height: 65px;

View File

@@ -1,6 +1,6 @@
import { ChangeDetectionStrategy, Component, Inject, LOCALE_ID, OnInit } from '@angular/core';
import { combineLatest, merge, Observable, of, timer } from 'rxjs';
import { filter, map, scan, share, switchMap, take, tap } from 'rxjs/operators';
import { combineLatest, merge, Observable, of } from 'rxjs';
import { filter, map, scan, share, switchMap, tap } from 'rxjs/operators';
import { BlockExtended, OptimizedMempoolStats } from '../interfaces/node-api.interface';
import { MempoolInfo, TransactionStripped } from '../interfaces/websocket.interface';
import { ApiService } from '../services/api.service';
@@ -128,13 +128,13 @@ export class DashboardComponent implements OnInit {
this.featuredAssets$ = this.apiService.listFeaturedAssets$()
.pipe(
map((featured) => {
featured = featured.slice(0, 4);
const newArray = [];
for (const feature of featured) {
if (feature.assets) {
feature.asset = feature.assets[0];
if (feature.ticker !== 'L-BTC' && feature.asset) {
newArray.push(feature);
}
}
return featured;
return newArray.slice(0, 4);
}),
);