-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<button (click)="openAdvancedClaimedTaskTab()" class="selectCollectionAction btn btn-primary" | ||
ngbTooltip="{{ 'submission.workflow.generic.' + option + '-help' | translate }}"> | ||
<i class="fa fa-user"></i> {{ 'submission.workflow.generic.' + option | translate }} | ||
</button> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { ADVANCED_WORKFLOW_ACTION_APPROVE_AND_SELECT, ADVANCED_WORKFLOW_TASK_OPTION_APPROVE_AND_SELECT } from './../../../../workflowitems-edit-page/advanced-workflow-action/sedici-advanced-approve-and-select/advanced-approve-and-select.component'; | ||
Check failure on line 1 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
Check failure on line 1 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
Check failure on line 1 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (18.x)
|
||
import { | ||
Component, | ||
Injector, | ||
Input, | ||
Check failure on line 5 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
|
||
} from '@angular/core'; | ||
import { Router, ActivatedRoute, NavigationExtras, } from '@angular/router'; | ||
Check failure on line 7 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
Check failure on line 7 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
Check failure on line 7 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
Check failure on line 7 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (18.x)
Check failure on line 7 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (18.x)
|
||
import { TranslateService } from '@ngx-translate/core'; | ||
import { | ||
Observable, | ||
Check failure on line 10 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
|
||
of, | ||
Check failure on line 11 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
|
||
} from 'rxjs'; | ||
|
||
|
||
import { RemoteData } from '../../../../core/data/remote-data'; | ||
Check failure on line 15 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
|
||
import { RequestService } from '../../../../core/data/request.service'; | ||
import { DSpaceObject } from '../../../../core/shared/dspace-object.model'; | ||
Check failure on line 17 in src/app/shared/mydspace-actions/claimed-task/sedici-approve-and-select/claimed-task-actions-approve-and-select.component.ts GitHub Actions / tests (16.x)
|
||
import { SearchService } from '../../../../core/shared/search/search.service'; | ||
import { NotificationsService } from '../../../notifications/notifications.service'; | ||
import { ClaimedApprovedTaskSearchResult } from '../../../object-collection/shared/claimed-approved-task-search-result.model'; | ||
import { AdvancedClaimedTaskActionsAbstractComponent } from '../abstract/advanced-claimed-task-actions-abstract.component'; | ||
import { rendersWorkflowTaskOption } from '../switcher/claimed-task-actions-decorator'; | ||
import { getAdvancedWorkflowRoute } from 'src/app/workflowitems-edit-page/workflowitems-edit-page-routing-paths'; | ||
import { WorkflowItem } from 'src/app/core/submission/models/workflowitem.model'; | ||
import { Item } from 'src/app/core/shared/item.model'; | ||
|
||
@rendersWorkflowTaskOption(ADVANCED_WORKFLOW_TASK_OPTION_APPROVE_AND_SELECT) | ||
@Component({ | ||
selector: 'ds-claimed-task-actions-approve-and-select', | ||
styleUrls: ['./claimed-task-actions-approve-and-select.component.scss'], | ||
templateUrl: './claimed-task-actions-approve-and-select.component.html', | ||
}) | ||
/** | ||
* Component for displaying and processing the approve action on a workflow task item | ||
*/ | ||
export class ClaimedTaskActionsApproveAndSelectComponent extends AdvancedClaimedTaskActionsAbstractComponent { | ||
/** | ||
* This component represents the approve option | ||
*/ | ||
|
||
option = ADVANCED_WORKFLOW_TASK_OPTION_APPROVE_AND_SELECT; | ||
|
||
workflowType = ADVANCED_WORKFLOW_ACTION_APPROVE_AND_SELECT; | ||
|
||
constructor(protected injector: Injector, | ||
protected router: Router, | ||
protected notificationsService: NotificationsService, | ||
protected translate: TranslateService, | ||
protected searchService: SearchService, | ||
protected requestService: RequestService, | ||
protected route: ActivatedRoute,) { | ||
super(injector, router, notificationsService, translate, searchService, requestService, route); | ||
} | ||
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<button (click)="openAdvancedClaimedTaskTab()" class="selectCollectionAction btn btn-primary" | ||
ngbTooltip="{{ 'submission.workflow.generic.' + option + '-help' | translate }}"> | ||
<i class="fa fa-user"></i> {{ 'submission.workflow.generic.' + option | translate}} | ||
</button> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { | ||
Observable, | ||
of, | ||
} from 'rxjs'; | ||
import { | ||
Component, | ||
Injector, | ||
} from '@angular/core'; | ||
import { | ||
Router, | ||
ActivatedRoute, | ||
} from '@angular/router'; | ||
import { TranslateService } from '@ngx-translate/core'; | ||
|
||
|
||
import { | ||
ADVANCED_WORKFLOW_ACTION_SELECT_COLLECTION, | ||
ADVANCED_WORKFLOW_TASK_OPTION_SELECT_COLLECTION | ||
} from 'src/app/workflowitems-edit-page/advanced-workflow-action/sedici-advanced-workflow-select-collection/workflow-select-collection.component'; | ||
import { RequestService } from '../../../../core/data/request.service'; | ||
import { SearchService } from '../../../../core/shared/search/search.service'; | ||
import { NotificationsService } from '../../../notifications/notifications.service'; | ||
import { AdvancedClaimedTaskActionsAbstractComponent } from '../abstract/advanced-claimed-task-actions-abstract.component'; | ||
import { rendersWorkflowTaskOption } from '../switcher/claimed-task-actions-decorator'; | ||
|
||
|
||
@rendersWorkflowTaskOption(ADVANCED_WORKFLOW_TASK_OPTION_SELECT_COLLECTION) | ||
@Component({ | ||
selector: 'ds-claimed-task-actions-select-collection', | ||
styleUrls: ['./claimed-task-actions-select-collection.component.scss'], | ||
templateUrl: './claimed-task-actions-select-collection.component.html', | ||
}) | ||
/** | ||
* Component for displaying the edit metadata action on a workflow task item | ||
*/ | ||
export class ClaimedTaskActionsSelectCollectionComponent extends AdvancedClaimedTaskActionsAbstractComponent { | ||
|
||
workflowType = ADVANCED_WORKFLOW_ACTION_SELECT_COLLECTION; | ||
/** | ||
* This component represents the edit metadata option | ||
*/ | ||
option = ADVANCED_WORKFLOW_TASK_OPTION_SELECT_COLLECTION; | ||
|
||
constructor(protected injector: Injector, | ||
protected router: Router, | ||
protected notificationsService: NotificationsService, | ||
protected translate: TranslateService, | ||
protected searchService: SearchService, | ||
protected requestService: RequestService, | ||
protected route: ActivatedRoute, | ||
) { | ||
super(injector, router, notificationsService, translate, searchService, requestService, route); | ||
} | ||
|
||
// ngOnInit(): void { | ||
// this.collectionDataService.findByHref(`${environment.rest.baseUrl}/api/core/collections/${this.workflowitem.sections.collection}`).subscribe(collection => { | ||
// this.originalCollection = collection?.payload; | ||
// this.selectedCollection = this.originalCollection; | ||
// this.selectedCollectionName = this.selectedCollection.name; | ||
// }); | ||
// } | ||
|
||
} |