diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-18 21:20:37 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-18 21:20:37 +0000 |
| commit | 52f6783f63d2e2f52e06d14a97b5e00eab8ac1c0 (patch) | |
| tree | 2ab9f938b1c38ebbf46176208cf4fc31f406aefc /instance-manager.js | |
| parent | 0c0fdc4e61d07d8883c382a4dd9d1afaa1874c33 (diff) | |
| download | sql-plus-plus-52f6783f63d2e2f52e06d14a97b5e00eab8ac1c0.tar.xz sql-plus-plus-52f6783f63d2e2f52e06d14a97b5e00eab8ac1c0.zip | |
Add new connection dialog box - WIP
Diffstat (limited to 'instance-manager.js')
| -rw-r--r-- | instance-manager.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/instance-manager.js b/instance-manager.js index e8b803e..115f359 100644 --- a/instance-manager.js +++ b/instance-manager.js @@ -2,6 +2,7 @@ const { ipcRenderer } = require('electron'); const TabGroup = require("electron-tabs"); +const $ = window.jQuery = require("jquery"); let tabGroup = new TabGroup(); let tab = tabGroup.addTab({ @@ -26,4 +27,19 @@ let tab2 = tabGroup.addTab({ visible: true, active: true, webviewAttributes: { "nodeintegration": true }, -});
\ No newline at end of file +}); + +function createNewConnection() { + ipcRenderer.send("instanceManager.openNewConnectionDialog"); +} + +ipcRenderer.on("instanceManager.newConnectionCallback", (event, response) => { + console.log(response); +}); + + +$(document).ready(() => { + $("#new-connection").click(() => { + createNewConnection(); + }) +})
\ No newline at end of file |