Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
fix(Recovery): fix flashing buttons during step transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtormey committed Dec 17, 2015
1 parent 5403f46 commit ec8a942
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions app/partials/recover-funds.jade
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,27 @@
p {{ errors.confirmation }}
.flex-center.flex-end.mvl
img(ng-show="working" src="img/spinner.gif")
button.button-muted.mrm(
type="button"
ng-switch-when="1"
ng-disabled="working"
ui-sref="public.help"
translate="GO_BACK")
button.button-primary(
type="submit"
ng-switch-when="1"
ng-click="nextStep()"
ng-disabled="!recoveryForm.$valid"
translate="CONTINUE")
button.button-muted.mrm(
type="button"
ng-switch-when="2"
ng-click="goBack()"
translate="GO_BACK")
button.button-success(
type="submit"
ng-switch-when="2"
ng-click="performImport()"
ng-disabled="!recoveryForm.$valid || working"
translate="RECOVER_FUNDS")
div(ng-switch-when="1")
button.button-muted.mrm(
type="button"
ng-disabled="working"
ui-sref="public.help"
translate="GO_BACK")
button.button-primary(
type="submit"
ng-click="nextStep()"
ng-disabled="!recoveryForm.$valid"
translate="CONTINUE")
div(ng-switch-when="2")
button.button-muted.mrm(
type="button"
ng-click="goBack()"
translate="GO_BACK")
button.button-success(
type="submit"
ng-click="performImport()"
ng-disabled="!recoveryForm.$valid || working"
translate="RECOVER_FUNDS")
.flex-center.flex-justify.flex-column(ng-switch-when="3")
.level-complete.flex-center.flex-justify
i.ti-check.bright-green
Expand Down

0 comments on commit ec8a942

Please sign in to comment.