Skip to content

Commit

Permalink
KEYCLOAK-5930: Submit button on cred screen should start as disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilvert committed Dec 6, 2017
1 parent cccddeb commit b8da95e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
</div>

<div class="form-group">
<div class="col-md-10 col-md-offset-2" data-ng-show="passwordAndConfirmPasswordEntered()">
<button class="btn btn-danger" type="submit" data-ng-click="resetPassword(true)">{{:: 'reset-password' | translate}}</button>
<div class="col-md-10 col-md-offset-2">
<button data-ng-disabled="!passwordAndConfirmPasswordEntered()" class="btn btn-default" type="submit" data-ng-click="resetPassword(true)">{{:: 'reset-password' | translate}}</button>
</div>
</div>
</fieldset>
Expand All @@ -57,7 +57,7 @@
<label class="col-md-2 control-label" for="disableCredentialTypes">{{:: 'disable-credential-types' | translate}}</label>

<div class="col-md-6">
<button type="button" id="disableCredentialTypes" class="btn btn-default" data-ng-click="disableCredentialTypes()">{{:: 'disable' | translate}}</button>
<button data-ng-disabled="disableableCredentialTypes.length === 0" type="button" id="disableCredentialTypes" class="btn btn-default" data-ng-click="disableCredentialTypes()">{{:: 'disable' | translate}}</button>
</div>
<kc-tooltip>{{:: 'credentials.disable.tooltip' | translate}}</kc-tooltip>
</div>
Expand Down Expand Up @@ -93,7 +93,7 @@
<label class="col-md-2 control-label" for="reqActionsEmail">{{:: 'reset-actions-email' | translate}}</label>

<div class="col-md-6">
<button type="button" id="reqActionsEmail" class="btn btn-default" data-ng-click="sendExecuteActionsEmail()">{{:: 'send-email' | translate}}</button>
<button data-ng-disabled="emailActions.length === 0" type="button" id="reqActionsEmail" class="btn btn-default" data-ng-click="sendExecuteActionsEmail()">{{:: 'send-email' | translate}}</button>
</div>
<kc-tooltip>{{:: 'credentials.reset-actions-email.tooltip' | translate}}</kc-tooltip>
</div>
Expand Down

0 comments on commit b8da95e

Please sign in to comment.