#726 required validator for group picker widget

This commit is contained in:
Denys Vuika
2016-09-14 18:49:59 +01:00
parent c1b2d0d7ab
commit 16eb825a51
5 changed files with 35 additions and 7 deletions

View File

@@ -54,6 +54,13 @@ export class FunctionalGroupWidget extends WidgetComponent implements OnInit {
let restrictWithGroup = <GroupModel> params['restrictWithGroup'];
this.groupId = restrictWithGroup.id;
}
// Load auto-completion for previously saved value
if (this.value) {
this.formService
.getWorkflowGroups(this.value, this.groupId)
.subscribe((result: GroupModel[]) => this.groups = result || []);
}
}
}