aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-04-26 16:26:03 +0200
committerGrégoire Aubert <gregaubert@users.noreply.github.com>2017-05-01 16:26:31 +0200
commit43f27896459dec1a76dc117db3a5b22afb99e0ff (patch)
treea2e5aeb2bef5516a4b7185b4c20f58c08fe5f894 /server/sonar-web/src/main/js
parent61da4f3531f26c70abc767cc3f584effcbfe0576 (diff)
downloadsonarqube-43f27896459dec1a76dc117db3a5b22afb99e0ff.tar.gz
sonarqube-43f27896459dec1a76dc117db3a5b22afb99e0ff.zip
SONAR-9119 Fix organization creation spinner
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js b/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
index aa1c16096b0..d5f9835be62 100644
--- a/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
+++ b/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
@@ -229,14 +229,15 @@ class CreateOrganizationForm extends React.PureComponent {
</div>
<footer className="modal-foot">
- {this.state.processing
- ? <i className="spinner" />
- : <div>
- <button type="submit">{translate('create')}</button>
- <button type="reset" className="button-link" onClick={this.closeForm}>
- {translate('cancel')}
- </button>
- </div>}
+ <div>
+ <button disabled={this.state.loading} type="submit">
+ {this.state.loading && <i className="spinner little-spacer-right" />}
+ {translate('create')}
+ </button>
+ <button type="reset" className="button-link" onClick={this.closeForm}>
+ {translate('cancel')}
+ </button>
+ </div>
</footer>
</form>
</Modal>