mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked (#2133)
* [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked. * Added Start task/process cancel emitter handler to redirect when user clicks on cancel start/process . * [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked. * Changed activiti-start-task to adf-start-task * Changed onSuccess to success and Updated document. * [ADF-1175] Start Process and Start Task Forms don't close when Cancel button is clicked * Refactored start task component unit testcases
This commit is contained in:
committed by
Eugenio Romano
parent
32e64339ee
commit
ddc32328d8
@@ -35,7 +35,7 @@ export class StartTaskComponent implements OnInit {
|
||||
appId: string;
|
||||
|
||||
@Output()
|
||||
onSuccess: EventEmitter<any> = new EventEmitter<any>();
|
||||
success: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
@Output()
|
||||
cancel: EventEmitter<void> = new EventEmitter<void>();
|
||||
@@ -75,7 +75,7 @@ export class StartTaskComponent implements OnInit {
|
||||
this.startTaskmodel.category = this.appId;
|
||||
this.taskService.createNewTask(new TaskDetailsModel(this.startTaskmodel)).subscribe(
|
||||
(res: any) => {
|
||||
this.onSuccess.emit(res);
|
||||
this.success.emit(res);
|
||||
this.attachForm(res.id);
|
||||
this.resetForm();
|
||||
},
|
||||
|
Reference in New Issue
Block a user