mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4651] fix task form cloud (#4843)
* fix task form cloud * fix form
This commit is contained in:
@@ -22,7 +22,8 @@ import {
|
|||||||
import { Observable, of, forkJoin, Subject } from 'rxjs';
|
import { Observable, of, forkJoin, Subject } from 'rxjs';
|
||||||
import { switchMap, takeUntil } from 'rxjs/operators';
|
import { switchMap, takeUntil } from 'rxjs/operators';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { FormBaseComponent,
|
import {
|
||||||
|
FormBaseComponent,
|
||||||
FormFieldModel,
|
FormFieldModel,
|
||||||
FormOutcomeEvent,
|
FormOutcomeEvent,
|
||||||
FormOutcomeModel,
|
FormOutcomeModel,
|
||||||
@@ -31,7 +32,8 @@ import { FormBaseComponent,
|
|||||||
NotificationService,
|
NotificationService,
|
||||||
FormRenderingService,
|
FormRenderingService,
|
||||||
FORM_FIELD_VALIDATORS,
|
FORM_FIELD_VALIDATORS,
|
||||||
FormFieldValidator } from '@alfresco/adf-core';
|
FormFieldValidator
|
||||||
|
} from '@alfresco/adf-core';
|
||||||
import { FormCloudService } from '../services/form-cloud.service';
|
import { FormCloudService } from '../services/form-cloud.service';
|
||||||
import { FormCloud } from '../models/form-cloud.model';
|
import { FormCloud } from '../models/form-cloud.model';
|
||||||
import { TaskVariableCloud } from '../models/task-variable-cloud.model';
|
import { TaskVariableCloud } from '../models/task-variable-cloud.model';
|
||||||
@@ -117,6 +119,8 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
|||||||
if (appName && appName.currentValue) {
|
if (appName && appName.currentValue) {
|
||||||
if (this.taskId && this.processInstanceId) {
|
if (this.taskId && this.processInstanceId) {
|
||||||
this.getFormDefinitionWithFolderTask(this.appName, this.taskId, this.processInstanceId);
|
this.getFormDefinitionWithFolderTask(this.appName, this.taskId, this.processInstanceId);
|
||||||
|
} else if (this.taskId) {
|
||||||
|
this.getFormByTaskId(this.appName, this.taskId);
|
||||||
} else if (this.formId) {
|
} else if (this.formId) {
|
||||||
this.getFormById(appName.currentValue, this.formId);
|
this.getFormById(appName.currentValue, this.formId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user