Bläddra i källkod

Delete `execute_now_options` from Target Options

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu 1 år sedan
förälder
incheckning
ef4c10fb8e

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

@@ -873,8 +873,7 @@ class TransferItemModal extends React.Component<Props, State> {
         optionsLoadingSkipFields={[
           ...optionsLoadingSkipFields,
           "description",
-          "execute_now",
-          "execute_now_options",
+          "execute_now"
         ]}
         dictionaryKey={dictionaryKey}
         executeNowOptionsDisabled={

+ 0 - 15
src/components/modules/WizardModule/WizardOptions/WizardOptions.tsx

@@ -338,18 +338,6 @@ class WizardOptions extends React.Component<Props> {
         default: true,
         nullableBoolean: false,
       });
-      const executeNowValue = this.getFieldValue("execute_now", true);
-      fieldsSchema.push({
-        name: "execute_now_options",
-        type: "object",
-        properties: executionOptions,
-        disabled: !executeNowValue || this.props.executeNowOptionsDisabled,
-        description: this.props.executeNowOptionsDisabled
-          ? "The 'Execute Now Options' are disabled for the source provider"
-          : !executeNowValue
-          ? "Enable 'Execute Now' to set 'Execute Now Options'"
-          : `Set the options for ${this.props.wizardType} execution`,
-      });
     }
 
     return fieldsSchema;
@@ -582,9 +570,6 @@ class WizardOptions extends React.Component<Props> {
         if (field.name === "execute_now") {
           executeNowColumn = column;
         }
-        if (field.name === "execute_now_options") {
-          column = executeNowColumn;
-        }
         const usableField = toJS(field);
         if (
           field.type === "boolean" &&

+ 1 - 2
src/components/modules/WizardModule/WizardPageContent/WizardPageContent.tsx

@@ -539,8 +539,7 @@ class WizardPageContent extends React.Component<Props, State> {
             optionsLoadingSkipFields={[
               ...getOptionsLoadingSkipFields("destination"),
               "title",
-              "execute_now",
-              "execute_now_options",
+              "execute_now"
             ]}
             selectedInstances={this.props.wizardData.selectedInstances}
             showSeparatePerVm={Boolean(

+ 0 - 1
src/plugins/default/OptionsSchemaPlugin.ts

@@ -129,7 +129,6 @@ export const defaultGetDestinationEnv = (
   const env: any = {};
   const specialOptions = [
     "execute_now",
-    "execute_now_options",
     "separate_vm",
     "skip_os_morphing",
     "title",