mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
add to favorites basic functionality
This commit is contained in:
@@ -104,7 +104,7 @@ function GenerateSctriptButton({ modalState }) {
|
||||
icon: 'img shell',
|
||||
tabComponent: 'ShellTab',
|
||||
},
|
||||
code
|
||||
{ editor: code }
|
||||
);
|
||||
modalState.close();
|
||||
};
|
||||
|
||||
@@ -13,7 +13,12 @@ export default function SaveTabModal({ data, folder, format, modalState, tabid,
|
||||
changeTab(tabid, setOpenedTabs, (tab) => ({
|
||||
...tab,
|
||||
title: name,
|
||||
props: { ...tab.props, savedFile: name },
|
||||
props: {
|
||||
...tab.props,
|
||||
savedFile: name,
|
||||
savedFolder: folder,
|
||||
savedFormat: format,
|
||||
},
|
||||
}));
|
||||
|
||||
const handleKeyboard = React.useCallback(
|
||||
|
||||
Reference in New Issue
Block a user