Commits

Tim Donohue authored and GitHub committed f336a8b7452 Merge
Merge pull request #2611 from TAMULib/tamu-main-community-list-updates

Communities & Collections tree browser updates - Replaced #2597
No tags
gidlmaster

src/app/community-list-page/community-list/community-list.component.html

Modified
1 1 <ds-themed-loading *ngIf="(dataSource.loading$ | async) && !loadingNode" class="ds-themed-loading"></ds-themed-loading>
2 2 <cdk-tree [dataSource]="dataSource" [treeControl]="treeControl" [trackBy]="trackBy">
3 3 <!-- This is the tree node template for show more node -->
4 4 <cdk-tree-node *cdkTreeNodeDef="let node; when: isShowMore" cdkTreeNodePadding
5 5 class="example-tree-node show-more-node">
6 6 <div class="btn-group">
7 7 <button type="button" class="btn btn-default" cdkTreeNodeToggle>
8 8 <span class="fa fa-chevron-right invisible" aria-hidden="true"></span>
9 9 </button>
10 10 <div class="align-middle pt-2">
11 - <button *ngIf="node!==loadingNode" (click)="getNextPage(node)"
11 + <button *ngIf="!(dataSource.loading$ | async)" (click)="getNextPage(node)"
12 12 class="btn btn-outline-primary btn-sm" role="button">
13 13 <i class="fas fa-angle-down"></i> {{ 'communityList.showMore' | translate }}
14 14 </button>
15 15 <ds-themed-loading *ngIf="node===loadingNode && dataSource.loading$ | async" class="ds-themed-loading"></ds-themed-loading>
16 16 </div>
17 17 </div>
18 18 <div class="text-muted" cdkTreeNodePadding>
19 19 <div class="d-flex">
20 20 </div>
21 21 </div>

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut