1
0

Applied feedback for context name and missing context

This commit is contained in:
lotte
2023-05-04 14:38:10 +02:00
parent f159590187
commit f944fbba37
14 changed files with 31 additions and 24 deletions

View File

@@ -41,9 +41,9 @@ export class ClaimedTaskSearchResultDetailElementComponent extends SearchResultD
public showSubmitter = true;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceValidation;
public badgeContext = Context.MyDSpaceValidation;
/**
* The workflowitem object that belonging to the result object

View File

@@ -21,8 +21,8 @@ import { Context } from '../../../../core/shared/context.model';
export class ItemSearchResultDetailElementComponent extends SearchResultDetailElementComponent<ItemSearchResult, Item> {
/**
* Represent context
* Represents the badge context
*/
public childContext = Context.MyDSpaceArchived;
public badgeContext = Context.MyDSpaceArchived;
}

View File

@@ -41,9 +41,9 @@ export class PoolSearchResultDetailElementComponent extends SearchResultDetailEl
public showSubmitter = true;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceWaitingController;
public badgeContext = Context.MyDSpaceWaitingController;
/**
* The workflowitem object that belonging to the result object

View File

@@ -32,9 +32,9 @@ export class WorkflowItemSearchResultDetailElementComponent extends SearchResult
public item: Item;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceWorkflow;
public badgeContext = Context.MyDSpaceWorkflow;
constructor(
protected linkService: LinkService

View File

@@ -33,9 +33,9 @@ export class WorkspaceItemSearchResultDetailElementComponent extends SearchResul
public item: Item;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceWorkspace;
public badgeContext = Context.MyDSpaceWorkspace;
constructor(
protected linkService: LinkService

View File

@@ -32,9 +32,9 @@ export class ClaimedApprovedSearchResultListElementComponent extends SearchResul
public showSubmitter = true;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceApproved;
public badgeContext = Context.MyDSpaceApproved;
/**
* The workflowitem object that belonging to the result object

View File

@@ -33,9 +33,9 @@ export class ClaimedDeclinedSearchResultListElementComponent extends SearchResul
public showSubmitter = true;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceDeclined;
public badgeContext = Context.MyDSpaceDeclined;
/**
* The workflowitem object that belonging to the result object

View File

@@ -4,6 +4,7 @@
<ds-themed-item-list-preview *ngIf="workflowitem"
[item]="(workflowitem?.item | async)?.payload"
[object]="object"
[context]="badgeContext"
[showSubmitter]="showSubmitter">
</ds-themed-item-list-preview>
</div>

View File

@@ -13,6 +13,7 @@ import { ClaimedTaskSearchResult } from '../../../../object-collection/shared/cl
import { ClaimedTask } from '../../../../../core/tasks/models/claimed-task-object.model';
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
import { Context } from '../../../../../core/shared/context.model';
/**
* 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
*/
public showSubmitter = true;
/**
* Represents the badge context
*/
public badgeContext = Context.MyDSpaceDeclined;
/**
* The workflowitem object that belonging to the result object
*/

View File

@@ -36,9 +36,9 @@ export class ClaimedSearchResultListElementComponent extends SearchResultListEle
public showSubmitter = true;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceValidation;
public badgeContext = Context.MyDSpaceValidation;
/**
* The item object that belonging to the result object

View File

@@ -20,9 +20,9 @@ import { SearchResultListElementComponent } from '../../search-result-list-eleme
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement, Context.Workflow)
export class ItemSearchResultListElementSubmissionComponent extends SearchResultListElementComponent<ItemSearchResult, Item> implements OnInit {
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceArchived;
public badgeContext = Context.MyDSpaceArchived;
/**

View File

@@ -41,9 +41,9 @@ export class PoolSearchResultListElementComponent extends SearchResultListElemen
public showSubmitter = true;
/**
* Represent child Context
* Represents the badge Context
*/
public childContext = Context.MyDSpaceWaitingController;
public badgeContext = Context.MyDSpaceWaitingController;
/**
* The item object that belonging to the result object

View File

@@ -40,9 +40,9 @@ export class WorkflowItemSearchResultListElementComponent extends SearchResultLi
derivedSearchResult$: Observable<ItemSearchResult>;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceWorkflow;
public badgeContext = Context.MyDSpaceWorkflow;
/**
* Display thumbnails if required by configuration

View File

@@ -40,9 +40,9 @@ export class WorkspaceItemSearchResultListElementComponent extends SearchResult
derivedSearchResult$: Observable<ItemSearchResult>;
/**
* Represent child context
* Represents the badge context
*/
public childContext = Context.MyDSpaceWorkspace;
public badgeContext = Context.MyDSpaceWorkspace;
/**
* Display thumbnails if required by configuration