shelltab uses require editor

This commit is contained in:
Jan Prochazka
2020-12-03 18:08:38 +01:00
parent dc6093e4fc
commit f55049f212
2 changed files with 21 additions and 57 deletions

View File

@@ -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();
};