mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3817] Make AppId field not required and set minimum value to 0 (#4063)
This commit is contained in:
committed by
Eugenio Romano
parent
4b3fb70d5f
commit
087d56ae22
@@ -29,7 +29,7 @@ export class ProcessListDemoComponent implements OnInit {
|
||||
|
||||
DEFAULT_SIZE = 20;
|
||||
|
||||
minValue = 1;
|
||||
minValue = 0;
|
||||
|
||||
processListForm: FormGroup;
|
||||
|
||||
@@ -74,7 +74,7 @@ export class ProcessListDemoComponent implements OnInit {
|
||||
|
||||
buildForm() {
|
||||
this.processListForm = this.formBuilder.group({
|
||||
processAppId: new FormControl(this.appId, [Validators.required, Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
|
||||
processAppId: new FormControl(this.appId, [Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
|
||||
processDefinitionId: new FormControl(''),
|
||||
processInstanceId: new FormControl(''),
|
||||
processState: new FormControl(''),
|
||||
@@ -96,7 +96,11 @@ export class ProcessListDemoComponent implements OnInit {
|
||||
}
|
||||
|
||||
filterProcesses(processFilter: any) {
|
||||
if (processFilter.processAppId && processFilter.processAppId !== 0) {
|
||||
this.appId = processFilter.processAppId;
|
||||
} else {
|
||||
this.appId = null;
|
||||
}
|
||||
this.processDefId = processFilter.processDefinitionId;
|
||||
this.processInsId = processFilter.processInstanceId;
|
||||
this.state = processFilter.processState;
|
||||
|
Reference in New Issue
Block a user