[AAE-8061] Add groups restriction to people widget (#7586)

* [AAE-8061] add groups restriction to people widget

* Trigger travis

* [AAE-8061] fix lint

* [AAE-8061] fix unit tests
This commit is contained in:
Tomasz Gnyp
2022-04-20 15:51:32 +02:00
committed by GitHub
parent 6963bef092
commit 694d71a103
6 changed files with 159 additions and 20 deletions

View File

@@ -75,6 +75,7 @@ export class FormFieldModel extends FormWidgetModel {
selectionType: 'single' | 'multiple' = null;
rule?: FormFieldRule;
selectLoggedUser: boolean;
groupsRestriction: string[];
// container model members
numberOfColumns: number = 1;
@@ -183,6 +184,7 @@ export class FormFieldModel extends FormWidgetModel {
this.selectionType = json.selectionType;
this.rule = json.rule;
this.selectLoggedUser = json.selectLoggedUser;
this.groupsRestriction = json.groupsRestriction?.groups;
if (json.placeholder && json.placeholder !== '' && json.placeholder !== 'null') {
this.placeholder = json.placeholder;