@if(workflowSteps.length == 0){ {{ "ADD_WORKFLOW_STEP" | translate }} } @if(workflowSteps.length > 0){ {{ "EDIT_WORKFLOW_STEP" | translate }} }
@if(this.workflowInstances.length == 0) {
} @for (step of steps.controls; track $index; let i = $index) {
@if (step.get('stepName')?.touched && step.get('stepName')?.errors) { @if(step.get('stepName')?.errors?.['required']) {
{{ "STEP_NAME_IS_REQUIRED" | translate }}
} @if(step.get('stepName')?.errors?.['notUnique']) {
{{ "STEP_NAME_MUST_BE_UNIQUE" | translate }}
} }
@if (workflowInstances.length == 0 && i > 1) {
@if (steps.length > 2) { }
}
}