Skip to content

Commit f4cedeb

Browse files
committed
Renamed context in remaining places
1 parent f944fbb commit f4cedeb

30 files changed

Lines changed: 46 additions & 46 deletions

File tree

src/app/shared/object-detail/my-dspace-result-detail-element/claimed-task-search-result/claimed-task-search-result-detail-element.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ds-item-detail-preview [item]="item$?.value"
33
[object]="object"
44
[showSubmitter]="showSubmitter"
5-
[context]="childContext">
5+
[badgeContext]="badgeContext">
66
</ds-item-detail-preview>
77

88
<ds-claimed-task-actions [item]="item$.value"

src/app/shared/object-detail/my-dspace-result-detail-element/claimed-task-search-result/claimed-task-search-result-detail-element.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ describe('ClaimedTaskSearchResultDetailElementComponent', () => {
106106
expect(component.item$.value).toEqual(item);
107107
}));
108108

109-
it('should have the correct child context', () => {
110-
expect(component.childContext).toEqual(Context.MyDSpaceValidation);
109+
it('should have the correct badge context', () => {
110+
expect(component.badgeContext).toEqual(Context.MyDSpaceValidation);
111111
});
112112

113113
it('should forward claimed-task-actions processComplete event to reloadObject event emitter', fakeAsync(() => {

src/app/shared/object-detail/my-dspace-result-detail-element/item-detail-preview/item-detail-preview.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div *ngIf="item" class="item-page" @fadeInOut>
2-
<ds-themed-badges [object]="item" [context]="context"></ds-themed-badges>
2+
<ds-themed-badges [object]="item" [context]="badgeContext"></ds-themed-badges>
33
<div *ngIf="item">
44
<ds-themed-item-page-title-field [item]="item">
55
</ds-themed-item-page-title-field>

src/app/shared/object-detail/my-dspace-result-detail-element/item-detail-preview/item-detail-preview.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class ItemDetailPreviewComponent {
3434
@Input() object: SearchResult<any>;
3535

3636
/**
37-
* Represent context
37+
* Represents the badge context
3838
*/
39-
@Input() context: Context;
39+
@Input() badgeContext: Context;
4040

4141
/**
4242
* A boolean representing if to show submitter information

src/app/shared/object-detail/my-dspace-result-detail-element/item-search-result/item-search-result-detail-element.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ds-item-detail-preview [item]="dso"
22
[object]="object"
3-
[context]="childContext">
3+
[badgeContext]="badgeContext">
44
</ds-item-detail-preview>
55

66
<ds-item-actions [object]="dso"></ds-item-actions>

src/app/shared/object-detail/my-dspace-result-detail-element/item-search-result/item-search-result-detail-element.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('ItemSearchResultDetailElementComponent', () => {
6868
fixture.detectChanges();
6969
});
7070

71-
it('should have the correct child context', () => {
72-
expect(component.childContext).toEqual(Context.MyDSpaceArchived);
71+
it('should have the correct badge context', () => {
72+
expect(component.badgeContext).toEqual(Context.MyDSpaceArchived);
7373
});
7474
});

src/app/shared/object-detail/my-dspace-result-detail-element/pool-search-result/pool-search-result-detail-element.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ds-item-detail-preview [item]="item$?.value"
33
[object]="object"
44
[showSubmitter]="showSubmitter"
5-
[context]="childContext"></ds-item-detail-preview>
5+
[badgeContext]="badgeContext"></ds-item-detail-preview>
66

77
<ds-pool-task-actions [item]="item$.value"
88
[object]="dso"

src/app/shared/object-detail/my-dspace-result-detail-element/pool-search-result/pool-search-result-detail-element.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ describe('PoolSearchResultDetailElementComponent', () => {
101101
expect(component.item$.value).toEqual(item);
102102
}));
103103

104-
it('should have the correct child context', () => {
105-
expect(component.childContext).toEqual(Context.MyDSpaceWaitingController);
104+
it('should have the correct badge context', () => {
105+
expect(component.badgeContext).toEqual(Context.MyDSpaceWaitingController);
106106
});
107107

108108
it('should forward pool-task-actions processCompleted event to the reloadedObject event emitter', fakeAsync(() => {
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ds-item-detail-preview [item]="item"
22
[object]="object"
3-
[context]="childContext"></ds-item-detail-preview>
3+
[badgeContext]="badgeContext"></ds-item-detail-preview>
44

55
<ds-workflowitem-actions [object]="dso"></ds-workflowitem-actions>
66

src/app/shared/object-detail/my-dspace-result-detail-element/workflow-item-search-result/workflow-item-search-result-detail-element.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('WorkflowItemSearchResultDetailElementComponent', () => {
8787
expect(component.item).toEqual(item);
8888
});
8989

90-
it('should have the correct child context', () => {
91-
expect(component.childContext).toEqual(Context.MyDSpaceWorkflow);
90+
it('should have the correct badge context', () => {
91+
expect(component.badgeContext).toEqual(Context.MyDSpaceWorkflow);
9292
});
9393
});

0 commit comments

Comments
 (0)