mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Intermittently failing test cases.
2. Dialog vertical position should be more on the upper side. 3. File not supported error is not showing. refs #7313
This commit is contained in:
committed by
Akshay Joshi
parent
96c360e728
commit
a7fd7d67b3
@@ -349,7 +349,12 @@ export default function Query() {
|
||||
eventBus.registerListener(QUERY_TOOL_EVENTS.LOAD_FILE, (fileName)=>{
|
||||
queryToolCtx.api.post(url_for('sqleditor.load_file'), {
|
||||
'file_name': decodeURI(fileName),
|
||||
}, {transformResponse: [(data) => { return data; }]}).then((res)=>{
|
||||
}, {transformResponse: [(data, headers) => {
|
||||
if(headers['content-type'].includes('application/json')) {
|
||||
return JSON.parse(data);
|
||||
}
|
||||
return data;
|
||||
}]}).then((res)=>{
|
||||
editor.current.setValue(res.data);
|
||||
//Check the file content for Trojan Source
|
||||
checkTrojanSource(res.data);
|
||||
|
||||
Reference in New Issue
Block a user