jusrhee 4 лет назад
Родитель
Сommit
7d847c0baa
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      dashboard/src/main/home/launch/launch-flow/SettingsPage.tsx

+ 8 - 3
dashboard/src/main/home/launch/launch-flow/SettingsPage.tsx

@@ -145,15 +145,20 @@ class SettingsPage extends Component<PropsType, StateType> {
           </Helper>
           <PorterFormWrapper
             formData={form}
-            valuesToOverride={valuesToOverride}
-            isReadOnly={!this.props.isAuthorized("namespace", "", ["get", "create"])}
-            onSubmit={onSubmit}
             saveValuesStatus={saveValuesStatus}
+            valuesToOverride={valuesToOverride}
             externalValues={{
               namespace: selectedNamespace,
               clusterId: this.context.currentCluster.id,
               isLaunch: true,
             }}
+            isReadOnly={
+              !this.props.isAuthorized("namespace", "", ["get", "create"])
+            }
+            onSubmit={(val) => {
+              console.log(val);
+              onSubmit(val)
+            }}
           />
         </>
       );