Explorar o código

Fix Provisoner Button (#3196)

Co-authored-by: d-g-town <66391417+d-g-town@users.noreply.github.com>
sdess09 %!s(int64=2) %!d(string=hai) anos
pai
achega
0ef6248879
Modificáronse 1 ficheiros con 1 adicións e 18 borrados
  1. 1 18
      dashboard/src/components/ProvisionerSettings.tsx

+ 1 - 18
dashboard/src/components/ProvisionerSettings.tsx

@@ -112,7 +112,6 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
   const [isReadOnly, setIsReadOnly] = useState(false);
   const [errorMessage, setErrorMessage] = useState<string>(undefined);
   const [isClicked, setIsClicked] = useState(false);
-  const [inputError, setInputError] = useState<boolean>(false);
   const markStepStarted = async (step: string) => {
     try {
       await api.updateOnboardingStep("<token>", { step }, {});
@@ -182,22 +181,6 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
     // If all tags are valid, return false (no error)
     return false;
   }
-  function validateAllInputs() {
-
-    if (validateInput(wildCardDomain) != false) {
-      setInputError(true);
-      return true;
-    }
-    if (validateTags(awsTags)) {
-      setInputError(true);
-      return true;
-    }
-    if (validateIPInput(IPAllowList)) {
-      setInputError(true);
-      return true;
-    }
-
-  }
   const isDisabled = () => {
     return (
       !user.email.endsWith("porter.run") &&
@@ -205,7 +188,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
         (isReadOnly && props.provisionerError === "") ||
         props.provisionerError === "" ||
         currentCluster?.status === "UPDATING" ||
-        isClicked || validateAllInputs())
+        isClicked)
     );
   };
   function convertStringToTags(tagString) {