117287: Fixed broken pagination on resource policy page

This commit is contained in:
Alexandre Vryghem
2025-05-02 01:03:08 +02:00
parent dc8b10593c
commit e9061a46b6
2 changed files with 4 additions and 4 deletions

View File

@@ -13,9 +13,9 @@
<p>{{'researcher.profile.not.associated' | translate}}</p> <p>{{'researcher.profile.not.associated' | translate}}</p>
</div> </div>
<button *ngIf="!researcherProfile" class="btn btn-primary mr-2" <button *ngIf="!researcherProfile" class="btn btn-primary mr-2"
[disabled]="(processingDelete$ | async) === true" [disabled]="(processingCreate$ | async) === true"
(click)="createProfile()"> (click)="createProfile()">
<span *ngIf="(processingDelete$ | async) === true"> <span *ngIf="(processingCreate$ | async) === true">
<i class='fas fa-circle-notch fa-spin'></i> {{'researcher.profile.action.processing' | translate}} <i class='fas fa-circle-notch fa-spin'></i> {{'researcher.profile.action.processing' | translate}}
</span> </span>
<span *ngIf="(processingCreate$ | async) !== true"> <span *ngIf="(processingCreate$ | async) !== true">

View File

@@ -14,7 +14,7 @@ import { ResourceType } from '../../core/shared/resource-type';
import { EPersonDataService } from '../../core/eperson/eperson-data.service'; import { EPersonDataService } from '../../core/eperson/eperson-data.service';
import { GroupDataService } from '../../core/eperson/group-data.service'; import { GroupDataService } from '../../core/eperson/group-data.service';
import { fadeInOut } from '../animations/fade'; import { fadeInOut } from '../animations/fade';
import { getFirstCompletedRemoteData, getRemoteDataPayload } from '../../core/shared/operators'; import { getAllCompletedRemoteData, getRemoteDataPayload } from '../../core/shared/operators';
import { PaginationService } from '../../core/pagination/pagination.service'; import { PaginationService } from '../../core/pagination/pagination.service';
import { FindListOptions } from '../../core/data/find-list-options.model'; import { FindListOptions } from '../../core/data/find-list-options.model';
import { getDataServiceFor } from '../../core/data/base/data-service.decorator'; import { getDataServiceFor } from '../../core/data/base/data-service.decorator';
@@ -153,7 +153,7 @@ export class EpersonGroupListComponent implements OnInit, OnDestroy {
(this.dataService as EPersonDataService).searchByScope(scope, query, options) : (this.dataService as EPersonDataService).searchByScope(scope, query, options) :
(this.dataService as GroupDataService).searchGroups(query, options); (this.dataService as GroupDataService).searchGroups(query, options);
}), }),
getFirstCompletedRemoteData(), getAllCompletedRemoteData(),
getRemoteDataPayload(), getRemoteDataPayload(),
); );
} }