Преглед изворни кода

Adds descritpion for `shutdown_instances` option and updates some other labels

Daniel Vincze пре 1 година
родитељ
комит
56a23e0d4b

+ 1 - 1
src/components/modules/DashboardModule/DashboardLicence/DashboardLicence.tsx

@@ -277,7 +277,7 @@ class DashboardLicence extends React.Component<Props> {
     return (
       <LicenceError>
         <p>
-          Please contact Cloudbase Solutions with your Appliance ID in order to
+          Please contact your Coriolis representative with the Appliance ID in order to
           obtain a Coriolis® licence.
         </p>
         <ApplianceIdWrapper>

+ 2 - 2
src/components/modules/LicenceModule/LicenceModule.tsx

@@ -299,7 +299,7 @@ class LicenceModule extends React.Component<Props, State> {
     if (
       new Date(info.earliestLicenceExpiryDate).getTime() < new Date().getTime()
     ) {
-      return "Please contact Cloudbase Solutions with your Appliance ID in order to obtain a Coriolis® licence";
+      return "Please contact your Coriolis representative with the Appliance ID in order to obtain a Coriolis® licence";
     }
     return (
       <LicenceRowDescription>
@@ -346,7 +346,7 @@ class LicenceModule extends React.Component<Props, State> {
         </LicenceRow>
         <LicenceRow>
           <OutsideLink href={LEGAL_URLS.eula} target="_blank">
-            Read Coriolis© EULA
+            Read the Coriolis© EULA
             <OpenInNewIconWrapper
               dangerouslySetInnerHTML={{
                 __html: OpenInNewIcon(ThemePalette.primary),

+ 1 - 1
src/components/modules/TransferModule/TransferExecutionOptions/TransferExecutionOptions.tsx

@@ -131,7 +131,7 @@ class TransferExecutionOptions extends React.Component<Props, State> {
               description={
                 this.props.disableExecutionOptions
                   ? "The execution options are disabled for the source provider"
-                  : ""
+                  : LabelDictionary.getDescription(field.name)
               }
             />
           ))}

+ 2 - 0
src/constants.ts

@@ -64,8 +64,10 @@ export const executionOptions = [
   {
     name: "shutdown_instances",
     type: "boolean",
+    label: "Shutdown Instance(s)",
     defaultValue: false,
     nullableBoolean: false,
+    description: "When enabling this option, Coriolis will attempt to gracefully shut down the source instance(s), before syncing their data. This is recommended when executing Migrations, right before planning on completely Deploying on the destination cloud, as it will transfer the last chunks of data after the instance(s) have been shut down, and it leaves the source instance(s) off."
   },
 ];
 

+ 5 - 1
src/utils/LabelDictionary.ts

@@ -69,7 +69,7 @@ const dictionary = {
   storage_endpoint: "Storage Endpoint Suffix",
   preserve_nic_ips: "Preserve NIC IPs",
   openstack_use_current_user:
-    "Use Current User/Project/Domain for Authentification",
+    "Use Current User/Project/Domain for Authentication",
   windows_os_image: "Windows OS",
   linux_os_image: "Linux OS",
   skip_os_morphing: {
@@ -87,6 +87,10 @@ const dictionary = {
     description: `Whether or not Coriolis should clone the Transfer disks on the destination platforms before optionally performing the OSMorphing process and booting the final VM.
     Skipping disk cloning leads to a shorter deployment time, but means that the Transfer disks will be allocated to the new VM, and thus the next Transfer Execution will have to sync the disks from scratch.`,
   },
+  shutdown_instances: {
+    label: "Shutdown Instance(s)",
+    description: "This option can be used before completing the Deployment on the target cloud. After the source instance(s) shutdown, a last snapshot will be executed, in order to transfer the last bits of data to the target cloud, and the source instance(s) will be left stopped."
+  }
 };
 
 const cache: {