aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-07-28 10:17:08 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-07-28 10:17:08 +0200
commit768a9f68bf1ae0b27c30fa3269381e7df16a99f2 (patch)
tree22cefbc9bf3e24c2c890a67ff099f8e6a49bc8a7 /server/sonar-web/src/main/js/components
parent562ce026e39be193bb341cd1460641f0c395258b (diff)
downloadsonarqube-768a9f68bf1ae0b27c30fa3269381e7df16a99f2.tar.gz
sonarqube-768a9f68bf1ae0b27c30fa3269381e7df16a99f2.zip
SONAR-7918 display spinner
Diffstat (limited to 'server/sonar-web/src/main/js/components')
-rw-r--r--server/sonar-web/src/main/js/components/common/modal-form.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/common/modal-form.js b/server/sonar-web/src/main/js/components/common/modal-form.js
index 939cf8b7407..df9f32a1fe2 100644
--- a/server/sonar-web/src/main/js/components/common/modal-form.js
+++ b/server/sonar-web/src/main/js/components/common/modal-form.js
@@ -81,6 +81,14 @@ export default ModalView.extend({
if (this.disabledFields != null) {
this.disabledFields.prop('disabled', false);
}
+ },
+
+ showSpinner () {
+ this.$('.js-modal-spinner').removeClass('hidden');
+ },
+
+ hideSpinner () {
+ this.$('.js-modal-spinner').addClass('hidden');
}
});