mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-5677] Spelling error fixed
This commit is contained in:
@@ -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>
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user