diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-04-26 16:26:03 +0200 |
---|---|---|
committer | Grégoire Aubert <gregaubert@users.noreply.github.com> | 2017-05-01 16:26:31 +0200 |
commit | 43f27896459dec1a76dc117db3a5b22afb99e0ff (patch) | |
tree | a2e5aeb2bef5516a4b7185b4c20f58c08fe5f894 /server | |
parent | 61da4f3531f26c70abc767cc3f584effcbfe0576 (diff) | |
download | sonarqube-43f27896459dec1a76dc117db3a5b22afb99e0ff.tar.gz sonarqube-43f27896459dec1a76dc117db3a5b22afb99e0ff.zip |
SONAR-9119 Fix organization creation spinner
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js | 17 |
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> |