Hide pool share on mobile in pool ranking
This commit is contained in:
parent
0dc2a598c3
commit
14be0fc547
@ -106,7 +106,9 @@
|
|||||||
<td class=""><a [routerLink]="[('/mining/pool/' + pool.slug) | relativeUrl]">{{ pool.name }}</a></td>
|
<td class=""><a [routerLink]="[('/mining/pool/' + pool.slug) | relativeUrl]">{{ pool.name }}</a></td>
|
||||||
<td class="" *ngIf="this.miningWindowPreference === '24h' && !isLoading">{{ pool.lastEstimatedHashrate }} {{
|
<td class="" *ngIf="this.miningWindowPreference === '24h' && !isLoading">{{ pool.lastEstimatedHashrate }} {{
|
||||||
miningStats.miningUnits.hashrateUnit }}</td>
|
miningStats.miningUnits.hashrateUnit }}</td>
|
||||||
<td class="">{{ pool['blockText'] }}</td>
|
<td class="d-flex justify-content-center">
|
||||||
|
{{ pool.blockCount }}<span class="d-none d-md-block"> ({{ pool.share }}%)</span>
|
||||||
|
</td>
|
||||||
<td *ngIf="auditAvailable" class="health text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">
|
<td *ngIf="auditAvailable" class="health text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">
|
||||||
<a
|
<a
|
||||||
class="health-badge badge"
|
class="health-badge badge"
|
||||||
|
@ -98,7 +98,6 @@ export class PoolRankingComponent implements OnInit {
|
|||||||
)
|
)
|
||||||
.pipe(
|
.pipe(
|
||||||
map(data => {
|
map(data => {
|
||||||
data.pools = data.pools.map((pool: SinglePoolStats) => this.formatPoolUI(pool));
|
|
||||||
data['minersLuck'] = (100 * (data.blockCount / 1008)).toFixed(2); // luck 1w
|
data['minersLuck'] = (100 * (data.blockCount / 1008)).toFixed(2); // luck 1w
|
||||||
return data;
|
return data;
|
||||||
}),
|
}),
|
||||||
@ -110,11 +109,6 @@ export class PoolRankingComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
formatPoolUI(pool: SinglePoolStats) {
|
|
||||||
pool['blockText'] = pool.blockCount.toString() + ` (${pool.share}%)`;
|
|
||||||
return pool;
|
|
||||||
}
|
|
||||||
|
|
||||||
generatePoolsChartSerieData(miningStats) {
|
generatePoolsChartSerieData(miningStats) {
|
||||||
let poolShareThreshold = 0.5;
|
let poolShareThreshold = 0.5;
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user