Merge "Show wait spinner after submit of wizard modal"

This commit is contained in:
Jenkins 2016-08-20 23:49:49 +00:00 committed by Gerrit Code Review
commit 32cad5eb90
2 changed files with 5 additions and 2 deletions

View File

@ -85,7 +85,10 @@
<button type="button" class="btn btn-primary finish"
ng-click="viewModel.onClickFinishBtn()"
ng-disabled="wizardForm.$invalid||viewModel.isSubmitting">
<span ng-class="::viewModel.btnIcon.finish||'fa fa-check'"></span>
<span class="fa"
ng-class="viewModel.isSubmitting ? 'fa-spinner fa-spin' :
(viewModel.btnIcon.finish || 'fa-check')">
</span>
<span ng-bind="::viewModel.btnText.finish"></span>
</button>
</div>

View File

@ -120,7 +120,7 @@
},
btnIcon: {
finish: 'fa fa-cloud-upload'
finish: 'fa-cloud-upload'
}
});
}