Skip to content

Commit

Permalink
Update manager auth modal
Browse files Browse the repository at this point in the history
Disable save button when data fields are empty
  • Loading branch information
AXeL-dev committed Nov 1, 2020
1 parent 322ae04 commit 1e7f42f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/manager/manager.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ <h4 translate>Databases</h4>
(nzOnCancel)="isAuthenticationModalVisible = false"
(nzOnOk)="onAuthenticationModalSave()"
nzOkText="{{ 'Save' | translate }}"
[nzOkDisabled]="(authentication.type === authenticationTypes.EmailAndPassword && (!authentication.data?.email?.length || !authentication.data?.password?.length)) || (authentication.type === authenticationTypes.Token && !authentication.data?.token?.length)"
>
<nz-radio-group [(ngModel)]="authentication.type">
<label nz-radio class="radio" [nzValue]="authenticationTypes.None">{{ 'NoAuthentication' | translate }}</label>
Expand Down

0 comments on commit 1e7f42f

Please sign in to comment.