]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9119 Fix organization creation spinner
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Wed, 26 Apr 2017 14:26:03 +0000 (16:26 +0200)
committerGrégoire Aubert <gregaubert@users.noreply.github.com>
Mon, 1 May 2017 14:26:31 +0000 (16:26 +0200)
server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js

index aa1c16096b0f34945ea1f69c6c00efb12b41a75b..d5f9835be622a22e1eb2b43c2e5421c31bff6800 100644 (file)
@@ -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>