Browse Source

fix(hc): Sets form model to saving when creating an organization (#67557)

Gabe Villalobos 11 months ago
parent
commit
694d69467c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      static/app/views/organizationCreate/index.tsx

+ 4 - 1
static/app/views/organizationCreate/index.tsx

@@ -1,6 +1,6 @@
 import {useCallback} from 'react';
 
-import {addErrorMessage} from 'sentry/actionCreators/indicator';
+import {addErrorMessage, addLoadingMessage} from 'sentry/actionCreators/indicator';
 import CheckboxField from 'sentry/components/forms/fields/checkboxField';
 import SelectField from 'sentry/components/forms/fields/selectField';
 import TextField from 'sentry/components/forms/fields/textField';
@@ -44,6 +44,9 @@ function OrganizationCreate() {
       }
       const regionUrl = data.dataStorageLocation;
 
+      addLoadingMessage(t('Creating Organization\u2026'));
+      formModel.setFormSaving();
+
       client.request('/organizations/', {
         method: 'POST',
         data: removeDataStorageLocationFromFormData(data),