Show loading indicator on toggle in RBF list

This commit is contained in:
natsoni 2024-06-26 16:12:21 +09:00
parent 0b608c96dd
commit 87ee14f189
No known key found for this signature in database
GPG Key ID: C65917583181743B
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(