Skip to content

Commit

Permalink
Merge pull request #574 from anvithks/mod-user
Browse files Browse the repository at this point in the history
Fixed the issue with modify user. Removed validation for tenant
  • Loading branch information
skdwriting authored May 4, 2021
2 parents d0a8ba0 + 82107ae commit 61ec512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/business/identity/userList.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ export class UserListComponent implements OnInit, AfterViewChecked {
this.myFormGroup.controls['form_isModifyPsw'].value = false;

this.myFormGroup.controls['form_username'].clearValidators();
this.myFormGroup.controls['form_tenant'].clearValidators();
this.myFormGroup.controls['form_psw'].clearValidators();
this.myFormGroup.controls['form_pswConfirm'].clearValidators();


}else{
this.isEditUser = false;
this.popTitle = "Create";
Expand Down
4 changes: 2 additions & 2 deletions src/app/business/identity/userList.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
</form>

<p-footer *ngIf="!isEditUser">
<button type="button" pButton (click)="createUser()" label="OK"></button>
<button type="button" [disabled]="myFormGroup.invalid" pButton (click)="createUser()" label="OK"></button>
<button type="button" pButton (click)="createUserDisplay=false" label="Cancel"></button>
</p-footer>
<p-footer *ngIf="isEditUser">
<button type="button" pButton (click)="updateUser()" label="OK"></button>
<button type="button" [disabled]="myFormGroup.invalid" pButton (click)="updateUser()" label="OK"></button>
<button type="button" pButton (click)="createUserDisplay=false" label="Cancel"></button>
</p-footer>
</p-dialog>
Expand Down

0 comments on commit 61ec512

Please sign in to comment.