diff options
-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> |