Skip to content

Commit

Permalink
dreamfactorysoftware#305 - Fix roles saving issue
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Aug 26, 2024
1 parent 00d9bcd commit 8aa6145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class DfRoleDetailsComponent implements OnInit {
),
component: new FormControl(item.component),
access: new FormControl(
this.handleAccessValue(item.verbMask)
this.handleAccessValue(item.verbMask),
[Validators.required]
),
requester: new FormControl(
this.handleRequesterValue(item.requestorMask)
Expand Down Expand Up @@ -257,7 +258,7 @@ export class DfRoleDetailsComponent implements OnInit {
}

onSubmit() {
// if (this.roleForm.invalid) return;
if (this.roleForm.invalid) return;
const formValue = this.roleForm.getRawValue();
if (formValue.name === '' || formValue.name === null) return;
const payload: RolePayload = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class DfRolesAccessComponent implements OnInit {
this.initializeFilteredComponents();

this.updateDataSource();
this.add();
// this.add();
}
get cFormArray(): FormArray {
return this.form.get('formArray') as FormArray;
Expand Down

0 comments on commit 8aa6145

Please sign in to comment.