Skip to content

Commit

Permalink
Fixed issue with recent contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
warmans committed Sep 30, 2023
1 parent 5f94032 commit 4a6c4f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ export class ChangesComponent {
sortDirection: 'DESC'
}).pipe(takeUntil(this.unsubscribe$)).subscribe((res) => {
this.recentContributions = res.contributions;
if (res.contributions.length > 0) {
this.activeTab = 'pending';
}
}).add(() => {
this.loading.pop();
});
Expand All @@ -55,6 +52,9 @@ export class ChangesComponent {
).print()
}).pipe(takeUntil(this.unsubscribe$)).subscribe((res) => {
this.pendingChanges = res.changes;
if (res.changes.length > 0) {
this.activeTab = 'pending';
}
}).add(() => {
this.loading.pop();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
</div>
</div>

<app-changes></app-changes>

<div class="card mb-4" *ngIf="(chunkedTranscripts || []).length > 0">
<div class="card-header">Transcription Progress</div>
<div class="card-body d-flex">
Expand Down Expand Up @@ -123,6 +121,8 @@
</div>
</div>

<app-changes></app-changes>

<ul class="nav nav-tabs font-weight-bold">
<li class="nav-item mr-2">
<a class="nav-link" (click)="activeContributionsPanel='authors'" [ngClass]="{'active': activeContributionsPanel === 'authors'}">Author Ranking</a>
Expand Down

0 comments on commit 4a6c4f5

Please sign in to comment.