Skip to content

Commit 8cc9606

Browse files
committed
Variable name change.
1 parent 388c08b commit 8cc9606

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/app/community-list-page/community-list/community-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h5 class="align-middle pt-2">
3737
<a [routerLink]="node.route" class="lead">
3838
{{node.name}}
3939
</a>
40-
<span *ngIf="node.payload.archivedItems" class="archived-items-lead">[{{node.payload.archivedItems}}]</span>
40+
<span *ngIf="node.payload.archivedItemsCount" class="archived-items-lead">[{{node.payload.archivedItemsCount}}]</span>
4141
</h5>
4242
</div>
4343
<ds-truncatable [id]="node.id">

src/app/core/shared/collection.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { COMMUNITY } from './community.resource-type';
1616
import { Community } from './community.model';
1717
import { ChildHALResource } from './child-hal-resource.model';
1818
import { HandleObject } from './handle-object.model';
19-
import {excludeFromEquals} from '../utilities/equals.decorators';
19+
import { excludeFromEquals } from '../utilities/equals.decorators';
2020

2121
@typedObject
2222
@inheritSerialization(DSpaceObject)
@@ -25,7 +25,7 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
2525

2626
@excludeFromEquals
2727
@autoserialize
28-
archivedItems: number;
28+
archivedItemsCount: number;
2929

3030
/**
3131
* The {@link HALLink}s for this Collection

src/app/core/shared/community.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
2121

2222
@excludeFromEquals
2323
@autoserialize
24-
archivedItems: number;
24+
archivedItemsCount: number;
2525

2626
/**
2727
* The {@link HALLink}s for this Community

src/app/shared/object-list/collection-list-element/collection-list-element.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<span *ngIf="linkType == linkTypes.None" class="lead">
55
{{object.name}}
66
</span>
7-
<span *ngIf="object.archivedItems" class="archived-items-lead">[{{object.archivedItems}}]<span>
7+
<span *ngIf="object.archivedItemsCount" class="archived-items-lead">[{{object.archivedItemsCount}}]<span>
88
<div *ngIf="object.shortDescription" class="text-muted abstract-text">
99
{{object.shortDescription}}
1010
</div>

src/app/shared/object-list/collection-list-element/collection-list-element.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const mockCollectionWithArchivedItems: Collection = Object.assign(new Collection
1515
value: 'Test title'
1616
}
1717
]
18-
}, archivedItems: 1
18+
}, archivedItemsCount: 1
1919
});
2020

2121
const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
@@ -26,7 +26,7 @@ const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collect
2626
value: 'Test title'
2727
}
2828
]
29-
}, archivedItems: 0
29+
}, archivedItemsCount: 0
3030
});
3131

3232

@@ -38,7 +38,7 @@ const mockCollectionWithAbstract: Collection = Object.assign(new Collection(), {
3838
value: 'Short description'
3939
}
4040
]
41-
}, archivedItems: 1
41+
}, archivedItemsCount: 1
4242
});
4343

4444
const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection(), {
@@ -49,7 +49,7 @@ const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection()
4949
value: 'Test title'
5050
}
5151
]
52-
}, archivedItems: 1
52+
}, archivedItemsCount: 1
5353
});
5454

5555
describe('CollectionListElementComponent', () => {

0 commit comments

Comments
 (0)