74179: Fix for no result message not shown if no search results epeople/group registry

This commit is contained in:
Marie Verdonck
2020-10-19 13:01:50 +02:00
parent 1903530f77
commit bdd1a675f1
4 changed files with 6 additions and 4 deletions

View File

@@ -40,7 +40,7 @@
</form> </form>
<ds-pagination <ds-pagination
*ngIf="(ePeopleDto$ | async)?.totalElements > 0" *ngIf="(pageInfoState$ | async)?.totalElements > 0"
[paginationOptions]="config" [paginationOptions]="config"
[pageInfoState]="pageInfoState$" [pageInfoState]="pageInfoState$"
[collectionSize]="(pageInfoState$ | async)?.totalElements" [collectionSize]="(pageInfoState$ | async)?.totalElements"

View File

@@ -141,7 +141,8 @@ export class EPeopleRegistryComponent implements OnInit, OnDestroy {
currentPage: this.config.currentPage, currentPage: this.config.currentPage,
elementsPerPage: this.config.pageSize elementsPerPage: this.config.pageSize
}).subscribe((peopleRD) => { }).subscribe((peopleRD) => {
this.ePeople$.next(peopleRD) this.ePeople$.next(peopleRD);
this.pageInfoState$.next(peopleRD.payload.pageInfo);
} }
)); ));

View File

@@ -30,7 +30,7 @@
</form> </form>
<ds-pagination <ds-pagination
*ngIf="(groupsDto$ | async)?.totalElements > 0" *ngIf="(pageInfoState$ | async)?.totalElements > 0"
[paginationOptions]="config" [paginationOptions]="config"
[pageInfoState]="pageInfoState$" [pageInfoState]="pageInfoState$"
[collectionSize]="(pageInfoState$ | async)?.totalElements" [collectionSize]="(pageInfoState$ | async)?.totalElements"

View File

@@ -110,7 +110,8 @@ export class GroupsRegistryComponent implements OnInit, OnDestroy {
currentPage: this.config.currentPage, currentPage: this.config.currentPage,
elementsPerPage: this.config.pageSize elementsPerPage: this.config.pageSize
}).subscribe((groupsRD: RemoteData<PaginatedList<Group>>) => { }).subscribe((groupsRD: RemoteData<PaginatedList<Group>>) => {
this.groups$.next(groupsRD) this.groups$.next(groupsRD);
this.pageInfoState$.next(groupsRD.payload.pageInfo);
} }
)); ));