Jelajahi Sumber

gate file upload on external envs (#4578)

ianedwards 2 tahun lalu
induk
melakukan
6152485544
1 mengubah file dengan 15 tambahan dan 15 penghapusan
  1. 15 15
      dashboard/src/main/home/env-dashboard/tabs/EnvVarsTab.tsx

+ 15 - 15
dashboard/src/main/home/env-dashboard/tabs/EnvVarsTab.tsx

@@ -210,23 +210,23 @@ const EnvVarsTab: React.FC<Props> = ({ envGroup, fetchEnvGroup }) => {
             secretOption={true}
             disabled={!isUpdatable}
           />
-          <Spacer y={1} />
-          <Text size={16}>Environment files</Text>
-          <Spacer y={0.5} />
-          <Text color="helper">
-            Files containing sensitive data that will be injected into your
-            app&apos;s root directory, at the path{" "}
-            <Code>{`/etc/secrets/${envGroup.name}`}</Code>.
-          </Text>
-          <Spacer y={1} />
-          <FileArray
-            files={envFiles}
-            setFiles={(x) => {
-              setValue("envFiles", x);
-            }}
-          />
           {isUpdatable ? (
             <>
+              <Spacer y={1} />
+              <Text size={16}>Environment files</Text>
+              <Spacer y={0.5} />
+              <Text color="helper">
+                Files containing sensitive data that will be injected into your
+                app&apos;s root directory, at the path{" "}
+                <Code>{`/etc/secrets/${envGroup.name}`}</Code>.
+              </Text>
+              <Spacer y={1} />
+              <FileArray
+                files={envFiles}
+                setFiles={(x) => {
+                  setValue("envFiles", x);
+                }}
+              />
               <Spacer y={1} />
               <Button
                 type="submit"