fix: remove and hide loading indicators from unnecesary components

This commit is contained in:
rodribp 2026-06-15 01:19:21 -06:00 committed by Rodrigo Bonilla
parent 29afce710d
commit a57c7ac8bb
16 changed files with 18 additions and 17 deletions

View file

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

View file

@ -1,4 +1,3 @@
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
<div [class.full-container]="!widget">
<ng-container *ngIf="!error">

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
<app-indexing-progress></app-indexing-progress>
<app-indexing-progress [showNetworkHashrate]="false" [showPoolsHashrate]="false"></app-indexing-progress>
<div class="full-container">

View file

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

View file

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

View file

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

View file

@ -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(
) {}

View file

@ -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' : ''">

View file

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

View file

@ -1,4 +1,3 @@
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
<div [class]="widget === false ? 'full-container' : ''">

View file

@ -1,4 +1,3 @@
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
<div [class.full-container]="!widget">
<ng-container *ngIf="!error">

View file

@ -1,4 +1,3 @@
<app-indexing-progress *ngIf="!widget"></app-indexing-progress>
<div [class.full-container]="!widget">
<ng-container *ngIf="!error">