replaced wfi components by task components that render wfi's

This commit is contained in:
lotte
2020-04-02 17:05:46 +02:00
parent 6e49ef6859
commit 258b1228f3
34 changed files with 491 additions and 133 deletions

View File

@@ -0,0 +1 @@
<ds-modify-item-overview [item]="wfi.item"></ds-modify-item-overview>

View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WorkflowItemDeleteComponent } from './workflow-item-delete.component';
describe('WorkflowItemDeleteComponent', () => {
let component: WorkflowItemDeleteComponent;
let fixture: ComponentFixture<WorkflowItemDeleteComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ WorkflowItemDeleteComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(WorkflowItemDeleteComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,16 @@
import { Component, OnInit } from '@angular/core';
import { WorkflowItem } from '../../core/submission/models/workflowitem.model';
@Component({
selector: 'ds-workflow-item-delete',
templateUrl: './workflow-item-delete.component.html',
styleUrls: ['./workflow-item-delete.component.scss']
})
export class WorkflowItemDeleteComponent implements OnInit {
wfi: WorkflowItem;
constructor() { }
ngOnInit() {
}
}

View File

@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { WorkflowItemsEditPageRoutingModule } from './workflowitems-edit-page-routing.module';
import { SubmissionModule } from '../submission/submission.module';
import { WorkflowItemDeleteComponent } from './workflow-item-delete/workflow-item-delete.component';
@NgModule({
imports: [
@@ -11,7 +12,7 @@ import { SubmissionModule } from '../submission/submission.module';
SharedModule,
SubmissionModule,
],
declarations: []
declarations: [WorkflowItemDeleteComponent]
})
/**
* This module handles all modules that need to access the workflowitems edit page.