Merge pull request #5214 from mempool/natsoni/rbf-list-loading

Show loading indicator on toggle in RBF list
This commit is contained in:
softsimon 2024-06-26 17:10:14 +09:00 committed by GitHub
commit 69c5a2fb5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@
<div class="clearfix"></div>
<div class="rbf-trees" style="min-height: 295px">
<div class="rbf-trees" [ngStyle]="{ 'min-height': '295px', 'opacity': isLoading ? '0.75' : '1' }">
<ng-container *ngIf="rbfTrees$ | async as trees">
<div *ngFor="let tree of trees" class="tree">
<p class="info">

View File

@ -38,6 +38,7 @@ export class RbfList implements OnInit, OnDestroy {
this.fullRbf = (fragment === 'fullrbf');
this.websocketService.startTrackRbf(this.fullRbf ? 'fullRbf' : 'all');
this.nextRbfSubject.next(null);
this.isLoading = true;
});
this.rbfTrees$ = merge(