Просмотр исходного кода

re-add gcr uri field and only support .json files

Alexander Belanger 5 лет назад
Родитель
Сommit
5c0c9536a4

+ 1 - 1
dashboard/src/components/values-form/UploadArea.tsx

@@ -58,7 +58,7 @@ export default class UploadArea extends Component<PropsType, StateType> {
         onClick={() => {
             document.getElementById("file").click();
         }}>
-        <input id='file' hidden type="file" onChange={(event) => {
+        <input id='file' hidden type="file" accept=".json" onChange={(event) => {
             event.preventDefault();
             this.readFile(event.target.files[0]);
             event.currentTarget.value = null

+ 8 - 0
dashboard/src/main/home/integrations/create-integration/GCRForm.tsx

@@ -110,6 +110,14 @@ export default class GCRForm extends Component<PropsType, StateType> {
             height="100%"
             isRequired={true}
           />
+          <InputRow
+            type="text"
+            value={this.state.url}
+            setValue={(url: string) => this.setState({ url })}
+            label="🔗 GCR URL"
+            placeholder="ex: gcr.io/skynet-dev-172969"
+            width="100%"
+          />
         </CredentialWrapper>
         <SaveButton
           text="Save Settings"