Skip to content

Commit

Permalink
Merge pull request #298 from GabrielInTheWorld/create-member
Browse files Browse the repository at this point in the history
Removes additionalValidators to create a user without committee, OML,…
  • Loading branch information
GabrielInTheWorld committed Jun 28, 2021
2 parents da292c9 + 4100274 commit 7b4168a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ <h2 *ngIf="!isNewUser">{{ user?.full_name }}</h2>
[isEditing]="isEditingUser"
[isNewUser]="isNewUser"
[additionalFormControls]="additionalFormControls"
[additionalValidators]="additionalValidators"
[generatePasswordFn]="randomPasswordFn"
[user]="user"
(changeEvent)="personalInfoFormValue = $event"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ export class MemberEditComponent extends BaseModelContextComponent implements On
organization_management_level: []
};

public readonly additionalValidators = OneOfValidator.validation(
['committee_ids', 'organization_management_level'],
'management_level'
);

public isFormValid = false;
public personalInfoFormValue = {};
public formErrors: { [name: string]: boolean } | null = null;
Expand Down

0 comments on commit 7b4168a

Please sign in to comment.