Variable name change.

This commit is contained in:
damian
2023-06-09 16:44:29 +02:00
parent 388c08b9a1
commit 8cc96060ff
5 changed files with 9 additions and 9 deletions

View File

@@ -37,7 +37,7 @@
<a [routerLink]="node.route" class="lead">
{{node.name}}
</a>
<span *ngIf="node.payload.archivedItems" class="archived-items-lead">[{{node.payload.archivedItems}}]</span>
<span *ngIf="node.payload.archivedItemsCount" class="archived-items-lead">[{{node.payload.archivedItemsCount}}]</span>
</h5>
</div>
<ds-truncatable [id]="node.id">

View File

@@ -16,7 +16,7 @@ import { COMMUNITY } from './community.resource-type';
import { Community } from './community.model';
import { ChildHALResource } from './child-hal-resource.model';
import { HandleObject } from './handle-object.model';
import {excludeFromEquals} from '../utilities/equals.decorators';
import { excludeFromEquals } from '../utilities/equals.decorators';
@typedObject
@inheritSerialization(DSpaceObject)
@@ -25,7 +25,7 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
@excludeFromEquals
@autoserialize
archivedItems: number;
archivedItemsCount: number;
/**
* The {@link HALLink}s for this Collection

View File

@@ -21,7 +21,7 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
@excludeFromEquals
@autoserialize
archivedItems: number;
archivedItemsCount: number;
/**
* The {@link HALLink}s for this Community

View File

@@ -4,7 +4,7 @@
<span *ngIf="linkType == linkTypes.None" class="lead">
{{object.name}}
</span>
<span *ngIf="object.archivedItems" class="archived-items-lead">[{{object.archivedItems}}]<span>
<span *ngIf="object.archivedItemsCount" class="archived-items-lead">[{{object.archivedItemsCount}}]<span>
<div *ngIf="object.shortDescription" class="text-muted abstract-text">
{{object.shortDescription}}
</div>

View File

@@ -15,7 +15,7 @@ const mockCollectionWithArchivedItems: Collection = Object.assign(new Collection
value: 'Test title'
}
]
}, archivedItems: 1
}, archivedItemsCount: 1
});
const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
@@ -26,7 +26,7 @@ const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collect
value: 'Test title'
}
]
}, archivedItems: 0
}, archivedItemsCount: 0
});
@@ -38,7 +38,7 @@ const mockCollectionWithAbstract: Collection = Object.assign(new Collection(), {
value: 'Short description'
}
]
}, archivedItems: 1
}, archivedItemsCount: 1
});
const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection(), {
@@ -49,7 +49,7 @@ const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection()
value: 'Test title'
}
]
}, archivedItems: 1
}, archivedItemsCount: 1
});
describe('CollectionListElementComponent', () => {