Skip to content

Commit

Permalink
fix: display activities count in each panel
Browse files Browse the repository at this point in the history
see the issue for details

fixes issue #1133
  • Loading branch information
DanielPalafox committed Sep 15, 2021
1 parent a1dd349 commit 87298fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/cdk/panel/panels/panels.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
{{ total }})</span
>
<span
*ngIf="(currentAmount && !total) || currentAmount === total"
*ngIf="(currentAmount && !total) || total !== 0 && currentAmount === total"
class="clickable"
(click)="collapse()"
>
({{ currentAmount }})
</span>
<span *ngIf="!currentAmount && currentAmount !== 0">(0)</span>
<span *ngIf="currentAmount === 0">(0)</span>
</div>
<ng-container> </ng-container>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/cdk/panel/panels/panels.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class PanelsComponent implements OnInit {
| 'sub-peer-review'
| 'funding'
| 'research-resources' = 'activities'
@Input() currentAmount
@Input() currentAmount = 0
@Input() total
@Input() isPublicRecord: any = false
@Input() selectable = false
Expand Down

0 comments on commit 87298fd

Please sign in to comment.