Просмотр исходного кода

Merge pull request #728 from smiclea/fix-label

Fix button label when recreating migration
Daniel Vincze 3 лет назад
Родитель
Сommit
73af628c80

+ 6 - 2
src/components/modules/TransferModule/TransferItemModal/TransferItemModal.tsx

@@ -879,7 +879,9 @@ class TransferItemModal extends React.Component<Props, State> {
           ...migrationFields.map(f => f.name),
           ...migrationFields.map(f => f.name),
         ]}
         ]}
         dictionaryKey={dictionaryKey}
         dictionaryKey={dictionaryKey}
-        executeNowOptionsDisabled={!providerStore.hasExecuteNowOptions(this.props.sourceEndpoint.type)}
+        executeNowOptionsDisabled={
+          !providerStore.hasExecuteNowOptions(this.props.sourceEndpoint.type)
+        }
       />
       />
     );
     );
   }
   }
@@ -985,7 +987,9 @@ class TransferItemModal extends React.Component<Props, State> {
           {this.isLoading() ? (
           {this.isLoading() ? (
             <LoadingButton large>Loading ...</LoadingButton>
             <LoadingButton large>Loading ...</LoadingButton>
           ) : this.state.updating ? (
           ) : this.state.updating ? (
-            <LoadingButton large>Updating ...</LoadingButton>
+            <LoadingButton large>
+              {this.props.type === "replica" ? "Updating" : "Creating"} ...
+            </LoadingButton>
           ) : (
           ) : (
             <Button
             <Button
               large
               large