-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #645 from griffithlab/org-page-fixes
Various Org Page Fixes
- Loading branch information
Showing
9 changed files
with
144 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
client/src/app/views/organizations/organizations-groups/organizations-groups.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<ng-container *ngIf="(organizations$ | ngrxPush) as organizations"> | ||
<nz-space *ngFor="let organization of organizations" nzDirection="vertical"> | ||
<cvc-organization-card *nzSpaceItem [organization]="organization" ></cvc-organization-card> | ||
</nz-space> | ||
</ng-container> | ||
<nz-spin [nzSpinning]="this.loading$ | ngrxPush"> | ||
<ng-container *ngIf="!(this.loading$ | ngrxPush)"> | ||
<nz-space *ngFor="let organization of organizations$ | ngrxPush" nzDirection="vertical"> | ||
<cvc-organization-card *nzSpaceItem [organization]="organization" ></cvc-organization-card> | ||
</nz-space> | ||
</ng-container> | ||
</nz-spin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 18 additions & 16 deletions
34
...nt/src/app/views/organizations/organizations-members/organizations-members.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<nz-space nzSize="middle" *ngIf="(members$ | ngrxPush) as members" nzDirection="vertical" class="space-align-block"> | ||
<div nz-row [nzGutter]="[16, 16]" *nzSpaceItem> | ||
<div *ngFor="let member of members" nz-col [nzSpan]="6"> | ||
<cvc-user-card [user]="member"></cvc-user-card> | ||
</div> | ||
</div> | ||
<!-- Load More button row --> | ||
<ng-container *nzSpaceItem> | ||
<ng-container *ngrxLet="pageInfo$ as pageInfo"> | ||
<ng-container *ngIf="pageInfo.hasNextPage"> | ||
<button *ngIf="pageInfo.hasNextPage" | ||
(click)="loadMore(pageInfo.endCursor)" | ||
nz-button | ||
nzBlock>Load {{this.initialPageSize}} More</button> | ||
<nz-spin [nzSpinning]="this.loading$ | ngrxPush"> | ||
<ng-container *ngIf="! (this.loading$ | ngrxPush)"> | ||
<nz-space nzSize="middle" nzDirection="vertical" class="space-align-block"> | ||
<div nz-row [nzGutter]="[16, 16]" *nzSpaceItem> | ||
<div *ngFor="let member of members$ | ngrxPush" nz-col [nzSpan]="6"> | ||
<cvc-user-card [user]="member"></cvc-user-card> | ||
</div> | ||
</div> | ||
<!-- Load More button row --> | ||
<ng-container *nzSpaceItem> | ||
<ng-container *ngrxLet="pageInfo$ as pageInfo"> | ||
<ng-container *ngIf="pageInfo.hasNextPage"> | ||
<button *ngIf="pageInfo.hasNextPage" (click)="loadMore(pageInfo.endCursor)" nz-button nzBlock>Load | ||
{{this.initialPageSize}} More</button> | ||
</ng-container> | ||
</ng-container> | ||
</ng-container> | ||
</ng-container> | ||
</nz-space> | ||
</ng-container> | ||
</nz-space> | ||
</nz-spin> |
Oops, something went wrong.