mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Rename processDefinition -> processDefinitionId
This commit is contained in:
parent
a4cde396dd
commit
2637d4286a
@ -4,7 +4,7 @@
|
||||
<h4 class="mdl-dialog__title">{{'START_PROCESS.DIALOG.TITLE'|translate}}</h4>
|
||||
<div class="mdl-dialog__content">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<select name="processDefinition" [(ngModel)]="processDefinition" id="processDefinition">
|
||||
<select name="processDefinition" [(ngModel)]="processDefinitionId" id="processDefinition">
|
||||
<option *ngFor="let processDef of processDefinitions" [value]="processDef.id">
|
||||
{{processDef.name}}
|
||||
</option>
|
||||
@ -15,7 +15,7 @@
|
||||
<input class="mdl-textfield__input" type="text" [(ngModel)]="name" id="processName" />
|
||||
<label class="mdl-textfield__label" for="processName">{{'START_PROCESS.DIALOG.LABEL.NAME'|translate}}</label>
|
||||
</div>
|
||||
<activiti-start-form *ngIf="hasFormKey()" [processId]="processDefinition"
|
||||
<activiti-start-form *ngIf="hasFormKey()" [processId]="processDefinitionId"
|
||||
(formSaved)='onFormSaved($event)'
|
||||
(formCompleted)='onFormCompleted($event)'
|
||||
(formLoaded)='onFormLoaded($event)'
|
||||
|
@ -42,7 +42,7 @@ export class ActivitiStartProcessButton implements OnInit, OnChanges {
|
||||
processDefinitions: any[] = [];
|
||||
|
||||
name: string;
|
||||
processDefinition: string;
|
||||
processDefinitionId: string;
|
||||
|
||||
constructor(private translate: AlfrescoTranslationService,
|
||||
private activitiProcess: ActivitiProcessService) {
|
||||
@ -78,8 +78,8 @@ export class ActivitiStartProcessButton implements OnInit, OnChanges {
|
||||
}
|
||||
|
||||
public startProcess() {
|
||||
if (this.processDefinition && this.name) {
|
||||
this.activitiProcess.startProcess(this.processDefinition, this.name).subscribe(
|
||||
if (this.processDefinitionId && this.name) {
|
||||
this.activitiProcess.startProcess(this.processDefinitionId, this.name).subscribe(
|
||||
(res: any) => {
|
||||
this.cancel();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user