mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Filter start form outcomes (#1529)
* #1467 customs outcome * #1467 Filter the start form outcomes
This commit is contained in:
committed by
Mario Romano
parent
89bcdbef24
commit
d8c433c055
@@ -69,6 +69,9 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
||||
@Input()
|
||||
showRefreshButton: boolean = true;
|
||||
|
||||
@Input()
|
||||
readOnlyForm: boolean = false;
|
||||
|
||||
@Output()
|
||||
outcomeClick: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
@@ -112,6 +115,7 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
||||
this.formName = form.name;
|
||||
form.processDefinitionId = this.processDefinitionId;
|
||||
this.form = this.parseForm(form);
|
||||
this.form.readOnly = this.readOnlyForm;
|
||||
// this.form.processDefinitionId = this.processDefinitionId;
|
||||
this.formLoaded.emit(this.form);
|
||||
},
|
||||
@@ -126,6 +130,7 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
||||
form => {
|
||||
this.formName = form.processDefinitionName;
|
||||
this.form = this.parseForm(form);
|
||||
this.form.readOnly = this.readOnlyForm;
|
||||
this.formLoaded.emit(this.form);
|
||||
},
|
||||
error => this.handleError(error)
|
||||
|
@@ -75,7 +75,7 @@
|
||||
<h4 class="mdl-dialog__title">{{ 'DETAILS.LABELS.START_FORM'|translate }}</h4>
|
||||
<div class="mdl-dialog__content form__size">
|
||||
<activiti-start-form [processId]="processId" [processDefinitionId]="processInstanceDetails?.processDefinitionId"
|
||||
[showOutcomeButtons]="false" [showRefreshButton]="false">
|
||||
[showRefreshButton]="false" [readOnlyForm]="true" >
|
||||
</activiti-start-form>
|
||||
</div>
|
||||
<div class="mdl-dialog__actions">
|
||||
|
Reference in New Issue
Block a user