mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Add the show diagram button (#2121)
This commit is contained in:
committed by
Eugenio Romano
parent
aad7164042
commit
211a7f22b3
@@ -126,6 +126,10 @@ export class ProcessInstanceDetailsComponent implements OnChanges {
|
||||
return this.processInstanceDetails && !this.processInstanceDetails.ended;
|
||||
}
|
||||
|
||||
isDiagramDisabled(): boolean {
|
||||
return !this.isRunning() ? true : undefined;
|
||||
}
|
||||
|
||||
cancelProcess() {
|
||||
this.activitiProcess.cancelProcess(this.processInstanceId).subscribe(
|
||||
(data) => {
|
||||
@@ -158,8 +162,8 @@ export class ProcessInstanceDetailsComponent implements OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
onShowProcessDiagram(event: any) {
|
||||
this.showProcessDiagram.emit(event);
|
||||
onShowProcessDiagram(processInstanceId: any) {
|
||||
this.showProcessDiagram.emit({value: this.processInstanceId});
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user