[CST-5677] Spelling error fixed

This commit is contained in:
Davide Negretti
2022-06-09 18:05:30 +02:00
parent 99b12cdd0f
commit df1324af90
2 changed files with 8 additions and 8 deletions

View File

@@ -28,6 +28,6 @@
</ng-container>
</ng-container>
<div class="row justify-content-center" *ngIf="!allBundlesLoaded">
<button type="button" class="btn btn-link" (click)="onBunbleLoad()">{{ 'collection.edit.item.authorizations.load-bundle-button' | translate }}</button>
<button type="button" class="btn btn-link" (click)="onBundleLoad()">{{ 'collection.edit.item.authorizations.load-bundle-button' | translate }}</button>
</div>
</div>

View File

@@ -63,13 +63,13 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
* The size of the bundles to be loaded on demand
* @type {number}
*/
bunblesPerPage = 6;
bundlesPerPage = 6;
/**
* The number of current page
* @type {number}
*/
bunblesPageSize = 1;
bundlesPageSize = 1;
/**
* The flag to show or not the 'Load more' button
@@ -149,7 +149,7 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
getFirstSucceededRemoteDataWithNotEmptyPayload(),
map((item: Item) => this.linkService.resolveLink(
item,
followLink('bundles', {findListOptions: {currentPage : page, elementsPerPage: this.bunblesPerPage}}, followLink('bitstreams'))
followLink('bundles', {findListOptions: {currentPage : page, elementsPerPage: this.bundlesPerPage}}, followLink('bitstreams'))
))
) as Observable<Item>;
@@ -168,7 +168,7 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
take(1),
map((list: PaginatedList<Bundle>) => list.page)
).subscribe((bundles: Bundle[]) => {
if (isEqual(bundles.length,0) || bundles.length < this.bunblesPerPage) {
if (isEqual(bundles.length,0) || bundles.length < this.bundlesPerPage) {
this.allBundlesLoaded = true;
}
if (isEqual(page, 1)) {
@@ -226,9 +226,9 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
/**
* Loads as much bundles as initial value of bundleSize to be displayed
*/
onBunbleLoad(){
this.bunblesPageSize ++;
this.getBundlesPerItem(this.bunblesPageSize);
onBundleLoad(){
this.bundlesPageSize ++;
this.getBundlesPerItem(this.bundlesPageSize);
}
/**