69115: ClaimedTaskDataService and components refactoring

This commit is contained in:
Kristof De Langhe
2020-02-27 13:45:54 +01:00
parent 18b9a41fe0
commit b9c050c19c
17 changed files with 169 additions and 118 deletions

View File

@@ -16,7 +16,7 @@ import { RequestService } from '../../../core/data/request.service';
import { SearchService } from '../../../core/shared/search/search.service';
import { WorkflowAction } from '../../../core/tasks/models/workflow-action-object.model';
import { WorkflowActionDataService } from '../../../core/data/workflow-action-data.service';
import { WORKFLOW_TASK_OPTION_RETURN } from './return-to-pool/claimed-task-actions-return-to-pool.component';
import { WorkflowTaskOptions } from './workflow-task-options.model';
/**
* This component represents actions related to ClaimedTask object.
@@ -47,7 +47,7 @@ export class ClaimedTaskActionsComponent extends MyDSpaceActionsComponent<Claime
* The option used to render the "return to pool" component
* Every claimed task contains this option
*/
public returnToPoolOption = WORKFLOW_TASK_OPTION_RETURN;
public returnToPoolOption = WorkflowTaskOptions.ReturnToPool;
/**
* Initialize instance variables