-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(db-connection-ui): Big Query Add Database Form #14829
Changes from 1 commit
c61e90a
e0127ca
20d9eff
3408eac
c19e315
266cd27
37e46c0
a837fa2
910065c
1d43f1a
3da3955
abe5d0b
9c426f1
441f341
9174186
8ab9c9d
6617600
15f9c65
856261f
a547d6d
c80ff3d
4a92dd6
9f9285a
3beba99
ef5ea43
ed9b90a
2e78a75
7787200
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,16 +118,13 @@ const credentialsInfo = ({ | |
onChange={async event => { | ||
const file = event?.target?.files[0]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to put a type to your event, I'm pretty sure typescript will let you put |
||
setFileToUpload(file.name); | ||
const credentials = JSON.parse(await file.text()); | ||
const encrypted_extra = JSON.stringify({ | ||
credentials_info: credentials, | ||
}); | ||
changeMethods.onParametersUploadFileChange({ | ||
target: { | ||
name: 'encrypted_extra', | ||
value: encrypted_extra, | ||
value: await file.text(), | ||
}, | ||
}); | ||
document.getElementById('selectedFile').value = null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ref here would be better |
||
}} | ||
/> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, but this event function is a little long. I'd suggest putting it into a separate function.