Prechádzať zdrojové kódy

Enable Infra Settings for non-porter.run emails (#3167)

* Enable Infra SEttings for non-porter.run emails

* Enable Infra SEttings for non-porter.run emails
sdess09 2 rokov pred
rodič
commit
82543619f3

+ 4 - 4
dashboard/src/components/ProvisionerSettings.tsx

@@ -317,7 +317,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
           setActiveValue={setAwsRegion}
           setActiveValue={setAwsRegion}
           label="📍 AWS region"
           label="📍 AWS region"
         />
         />
-        {user?.isPorterUser && (
+        
           <Heading>
           <Heading>
             <ExpandHeader
             <ExpandHeader
               onClick={() => setIsExpanded(!isExpanded)}
               onClick={() => setIsExpanded(!isExpanded)}
@@ -327,10 +327,10 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
               Advanced settings
               Advanced settings
             </ExpandHeader>
             </ExpandHeader>
           </Heading>
           </Heading>
-        )}
+
         {isExpanded && (
         {isExpanded && (
           <>
           <>
-            <SelectRow
+            {user?.isPorterUser && (<SelectRow
               options={clusterVersionOptions}
               options={clusterVersionOptions}
               width="350px"
               width="350px"
               disabled={isReadOnly}
               disabled={isReadOnly}
@@ -339,7 +339,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
               dropdownMaxHeight="240px"
               dropdownMaxHeight="240px"
               setActiveValue={setClusterVersion}
               setActiveValue={setClusterVersion}
               label="Cluster version"
               label="Cluster version"
-            />
+            />)}
             <SelectRow
             <SelectRow
               options={machineTypeOptions}
               options={machineTypeOptions}
               width="350px"
               width="350px"