mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 21:55:59 +00:00
shelltab uses require editor
This commit is contained in:
@@ -97,14 +97,15 @@ function GenerateSctriptButton({ modalState }) {
|
||||
|
||||
const handleGenerateScript = async () => {
|
||||
const code = await createImpExpScript(extensions, values);
|
||||
openNewTab(setOpenedTabs, {
|
||||
title: 'Shell',
|
||||
icon: 'img shell',
|
||||
tabComponent: 'ShellTab',
|
||||
props: {
|
||||
initialScript: code,
|
||||
openNewTab(
|
||||
setOpenedTabs,
|
||||
{
|
||||
title: 'Shell',
|
||||
icon: 'img shell',
|
||||
tabComponent: 'ShellTab',
|
||||
},
|
||||
});
|
||||
code
|
||||
);
|
||||
modalState.close();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user