Skip to content

Commit f944fbb

Browse files
committed
Applied feedback for context name and missing context
1 parent f159590 commit f944fbb

14 files changed

Lines changed: 31 additions & 24 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export class ClaimedTaskSearchResultDetailElementComponent extends SearchResultD
4141
public showSubmitter = true;
4242

4343
/**
44-
* Represent child context
44+
* Represents the badge context
4545
*/
46-
public childContext = Context.MyDSpaceValidation;
46+
public badgeContext = Context.MyDSpaceValidation;
4747

4848
/**
4949
* The workflowitem object that belonging to the result object

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { Context } from '../../../../core/shared/context.model';
2121
export class ItemSearchResultDetailElementComponent extends SearchResultDetailElementComponent<ItemSearchResult, Item> {
2222

2323
/**
24-
* Represent context
24+
* Represents the badge context
2525
*/
26-
public childContext = Context.MyDSpaceArchived;
26+
public badgeContext = Context.MyDSpaceArchived;
2727

2828
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export class PoolSearchResultDetailElementComponent extends SearchResultDetailEl
4141
public showSubmitter = true;
4242

4343
/**
44-
* Represent child context
44+
* Represents the badge context
4545
*/
46-
public childContext = Context.MyDSpaceWaitingController;
46+
public badgeContext = Context.MyDSpaceWaitingController;
4747

4848
/**
4949
* The workflowitem object that belonging to the result object

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export class WorkflowItemSearchResultDetailElementComponent extends SearchResult
3232
public item: Item;
3333

3434
/**
35-
* Represent child context
35+
* Represents the badge context
3636
*/
37-
public childContext = Context.MyDSpaceWorkflow;
37+
public badgeContext = Context.MyDSpaceWorkflow;
3838

3939
constructor(
4040
protected linkService: LinkService

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class WorkspaceItemSearchResultDetailElementComponent extends SearchResul
3333
public item: Item;
3434

3535
/**
36-
* Represent child context
36+
* Represents the badge context
3737
*/
38-
public childContext = Context.MyDSpaceWorkspace;
38+
public badgeContext = Context.MyDSpaceWorkspace;
3939

4040
constructor(
4141
protected linkService: LinkService

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-approved-search-result/claimed-approved-search-result-list-element.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export class ClaimedApprovedSearchResultListElementComponent extends SearchResul
3232
public showSubmitter = true;
3333

3434
/**
35-
* Represent child context
35+
* Represents the badge context
3636
*/
37-
public childContext = Context.MyDSpaceApproved;
37+
public badgeContext = Context.MyDSpaceApproved;
3838

3939
/**
4040
* The workflowitem object that belonging to the result object

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-declined-search-result/claimed-declined-search-result-list-element.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class ClaimedDeclinedSearchResultListElementComponent extends SearchResul
3333
public showSubmitter = true;
3434

3535
/**
36-
* Represent child context
36+
* Represents the badge context
3737
*/
38-
public childContext = Context.MyDSpaceDeclined;
38+
public badgeContext = Context.MyDSpaceDeclined;
3939

4040
/**
4141
* The workflowitem object that belonging to the result object

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ <h4 class="alert-heading mb-0">{{ 'claimed-declined-task-search-result-list-elem
44
<ds-themed-item-list-preview *ngIf="workflowitem"
55
[item]="(workflowitem?.item | async)?.payload"
66
[object]="object"
7+
[context]="badgeContext"
78
[showSubmitter]="showSubmitter">
89
</ds-themed-item-list-preview>
910
</div>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { ClaimedTaskSearchResult } from '../../../../object-collection/shared/cl
1313
import { ClaimedTask } from '../../../../../core/tasks/models/claimed-task-object.model';
1414
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
1515
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
16+
import { Context } from '../../../../../core/shared/context.model';
1617

1718
/**
1819
* This component renders claimed task declined task object for the search result in the list view.
@@ -30,6 +31,11 @@ export class ClaimedDeclinedTaskSearchResultListElementComponent extends SearchR
3031
*/
3132
public showSubmitter = true;
3233

34+
/**
35+
* Represents the badge context
36+
*/
37+
public badgeContext = Context.MyDSpaceDeclined;
38+
3339
/**
3440
* The workflowitem object that belonging to the result object
3541
*/

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-search-result-list-element.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export class ClaimedSearchResultListElementComponent extends SearchResultListEle
3636
public showSubmitter = true;
3737

3838
/**
39-
* Represent child context
39+
* Represents the badge context
4040
*/
41-
public childContext = Context.MyDSpaceValidation;
41+
public badgeContext = Context.MyDSpaceValidation;
4242

4343
/**
4444
* The item object that belonging to the result object

0 commit comments

Comments
 (0)