mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 09:56:01 +00:00
SYNC: new cloud file
This commit is contained in:
committed by
Diflow
parent
fa321d3e8d
commit
d004e6e86c
@@ -40,7 +40,6 @@
|
|||||||
import runCommand from '../commands/runCommand';
|
import runCommand from '../commands/runCommand';
|
||||||
import SaveFileModal from '../modals/SaveFileModal.svelte';
|
import SaveFileModal from '../modals/SaveFileModal.svelte';
|
||||||
import newQuery from '../query/newQuery';
|
import newQuery from '../query/newQuery';
|
||||||
import openNewTab from '../utility/openNewTab';
|
|
||||||
|
|
||||||
let filter = '';
|
let filter = '';
|
||||||
let domSqlObjectList = null;
|
let domSqlObjectList = null;
|
||||||
@@ -115,7 +114,7 @@
|
|||||||
command: 'new.connectionOnCloud',
|
command: 'new.connectionOnCloud',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'New SQL file',
|
text: 'New SQL script',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const data = '';
|
const data = '';
|
||||||
showModal(SaveFileModal, {
|
showModal(SaveFileModal, {
|
||||||
@@ -124,21 +123,14 @@
|
|||||||
folid: privateFolderId,
|
folid: privateFolderId,
|
||||||
folder: 'sql',
|
folder: 'sql',
|
||||||
onSave: (name, { savedFile, savedFolder, savedFilePath, savedCloudFolderId, savedCloudContentId }) => {
|
onSave: (name, { savedFile, savedFolder, savedFilePath, savedCloudFolderId, savedCloudContentId }) => {
|
||||||
openNewTab(
|
newQuery({
|
||||||
{
|
// @ts-ignore
|
||||||
title: name,
|
|
||||||
icon: 'img sql-file',
|
|
||||||
tabComponent: 'QueryTab',
|
|
||||||
props: {
|
|
||||||
savedFolder: 'sql',
|
savedFolder: 'sql',
|
||||||
savedFormat: 'text',
|
savedFormat: 'text',
|
||||||
savedFile,
|
savedFile,
|
||||||
savedCloudFolderId,
|
savedCloudFolderId,
|
||||||
savedCloudContentId,
|
savedCloudContentId,
|
||||||
},
|
});
|
||||||
},
|
|
||||||
{ editor: data }
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user