removed dependencies on electron remote

This commit is contained in:
Jan Prochazka
2021-12-16 15:41:34 +01:00
parent 588b8b23f9
commit 3d841ef8fe
15 changed files with 87 additions and 54 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts" context="module">
export const extractKey = props => props.name;
const electron = getElectron();
export function getDatabaseMenuItems(connection, name, $extensions, $currentDatabase) {
const handleNewQuery = () => {
@@ -89,6 +88,7 @@
};
const handleDisconnect = () => {
const electron = getElectron();
if (electron) {
axiosInstance().post('database-connections/disconnect', { conid: connection._id, database: name });
}