mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
fix: remove and hide loading indicators from unnecesary components
This commit is contained in:
parent
29afce710d
commit
a57c7ac8bb
16 changed files with 18 additions and 17 deletions
|
|
@ -1,4 +1,3 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
|
||||
<div [class.full-container]="!widget">
|
||||
<div *ngIf="!widget" class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
|
||||
<div [class.full-container]="!widget">
|
||||
<ng-container *ngIf="!error">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
<app-indexing-progress *ngIf="!widget" [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div [class.full-container]="!widget">
|
||||
<div *ngIf="!widget" class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress></app-indexing-progress>
|
||||
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="full-container">
|
||||
<div class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress></app-indexing-progress>
|
||||
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="full-container">
|
||||
<div class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress></app-indexing-progress>
|
||||
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="full-container">
|
||||
<div class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress></app-indexing-progress>
|
||||
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="full-container">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="full-container">
|
||||
|
||||
<div class="card-header mb-0 mb-md-4">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
<app-indexing-progress *ngIf="!widget" [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="container-xl" style="min-height: 335px" [ngClass]="{'widget': widget, 'full-height': !widget, 'legacy': !isMempoolModule}">
|
||||
<div *ngIf="!widget" class="float-start" style="display: flex; width: 100%; align-items: center;">
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<app-loading-indicator [name]="'block-indexing'" i18n-label label="Indexing blocks"></app-loading-indicator>
|
||||
<app-loading-indicator [name]="'daily-hashrate-indexing'" i18n-label label="Indexing network hashrate"></app-loading-indicator>
|
||||
<app-loading-indicator [name]="'weekly-hashrate-indexing'" i18n-label label="Indexing pools hashrate"></app-loading-indicator>
|
||||
<app-loading-indicator *ngIf="showBlocks" [name]="'block-indexing'" i18n-label label="Indexing blocks"></app-loading-indicator>
|
||||
<app-loading-indicator *ngIf="showNetworkHashrate" [name]="'daily-hashrate-indexing'" i18n-label label="Indexing network hashrate"></app-loading-indicator>
|
||||
<app-loading-indicator *ngIf="showPoolsHashrate" [name]="'weekly-hashrate-indexing'" i18n-label label="Indexing pools hashrate"></app-loading-indicator>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-indexing-progress',
|
||||
|
|
@ -7,6 +7,10 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|||
standalone: false,
|
||||
})
|
||||
export class IndexingProgressComponent implements OnInit {
|
||||
@Input() showBlocks: boolean = true;
|
||||
@Input() showNetworkHashrate: boolean = true;
|
||||
@Input() showPoolsHashrate: boolean = true;
|
||||
|
||||
constructor(
|
||||
) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
<app-indexing-progress *ngIf="!widget" [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div [class]="widget === false ? 'full-container' : ''">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<app-indexing-progress></app-indexing-progress>
|
||||
<app-indexing-progress [showNetworkHashrate]="false"></app-indexing-progress>
|
||||
|
||||
<div class="container-xl" *ngIf="!error; else errorTemplate">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
|
||||
<div [class]="widget === false ? 'full-container' : ''">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
|
||||
<div [class.full-container]="!widget">
|
||||
<ng-container *ngIf="!error">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
|
||||
|
||||
<div [class.full-container]="!widget">
|
||||
<ng-container *ngIf="!error">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue