Show wait spinner after submit of wizard modal

Upon submitting a wizard modal, such as Launch Instance,
the modal remains open and the submit button is disabled.
This patch puts a spinner in the submit button as well to
show that work is going on in the background.

Note: Jenkins keeps failing due to firefox issues, so I'm
trying a different download link to see if it helps.

Change-Id: Ie800d9cc635d6b92af600e0bfe6846c70b6ca065
Closes-Bug: #1461641
This commit is contained in:
Yosef Hoffman 2016-06-29 07:36:46 -04:00
parent 79c2729d5a
commit d79a11ed4b
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'
}
});
}