Commit 0cf92858 authored by Spakes's avatar Spakes

'Remote Session' given a quick menu. Tested and working in all pages

parent 9b883120
Pipeline #23012 failed with stages
in 2 seconds
*.rpm
*.deb
ornltoolbox/
Releases*
......@@ -8,6 +8,7 @@
<script src="../miscjs/addWindow.js"></script>
<script src="../miscjs/backToMain.js"></script>
<script src="../miscjs/openURL.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
<script src="../softwareManagement/openSoftware/openSoftware.js"></script>
<script src="../miscjs/menuFunctionCalls.js"></script>
<script src="./yubiBadgeCheckpoint/yubiBadgeCheckpoint.js"></script>
......
......@@ -8,6 +8,7 @@
<script src="../miscjs/addWindow.js"></script>
<script src="../miscjs/backToMain.js"></script>
<script src="../miscjs/openURL.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
<script src="../softwareManagement/openSoftware/openSoftware.js"></script>
<script src="../miscjs/menuFunctionCalls.js"></script>
<script src="../badgeManagement/yubiBadgeCheckpoint/yubiBadgeCheckpoint.js"></script>
......
......@@ -14,6 +14,7 @@
<script src="./softwareManagement/softwareManagement.js"></script>
<script src="./softwareManagement/openSoftware/openSoftware.js"></script>
<script src="./miscjs/openURL.js"></script>
<script src="./miscjs/launchBomgar.js"></script>
<script src="./badgeManagement/yubiBadgeCheckpoint/yubiBadgeCheckpoint.js"></script>
<script src="./fileSystemManagement/localDriveUsage/localDriveUsage.js"></script>
<script src="./miscjs/menuFunctionCalls.js"></script>
......
......@@ -8,6 +8,7 @@
<script src="../miscjs/addWindow.js"></script>
<script src="../miscjs/backToMain.js"></script>
<script src="../miscjs/openURL.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
<script src="../softwareManagement/openSoftware/openSoftware.js"></script>
<script src="../miscjs/menuFunctionCalls.js"></script>
<script src="../badgeManagement/yubiBadgeCheckpoint/yubiBadgeCheckpoint.js"></script>
......@@ -15,7 +16,6 @@
<script src="../fileSystemManagement/addPassphrase/addPassphrase.js"></script>
<script src="../fileSystemManagement/removePassphrase/removePassphrase.js"></script>
<script src="../fileSystemManagement/driveHealthCheck/driveHealthCheck.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
</head>
<body>
<div class="heading">
......
......@@ -227,6 +227,13 @@ function createWindow() {
click: () => {
mainWindow.webContents.send('openWebsite', 'https://netreg.ornl.gov')
}
}, {
type: 'separator'
}, {
label: 'Remote Support',
click: () => {
mainWindow.webContents.send('launchBomgar')
}
}
]
}, {
......@@ -251,7 +258,7 @@ function createWindow() {
var menu = Menu.buildFromTemplate(menuTemplate);
Menu.setApplicationMenu(menu); //Sets the template as the app menu
//mainWindow.openDevTools() //Opens dev tools on start
mainWindow.openDevTools() //Opens dev tools on start
}
function addWin(file, title, width, height) {
......@@ -359,6 +366,7 @@ ipcMain.on('close minor window', () => {
ipcMain.on('close app', () => {
app.quit()
exit()
})
app.on('ready', createWindow)
......
function load() {
checkForRoot()
loadSoftwareBadges()
loadDeviceBadges()
//Disabled for now because waiting on Device Monitor
//loadDeviceBadges()
}
......@@ -32,6 +32,10 @@ ipcRenderer.on('openWebsite', (event, message) => {
openURL(message)
})
ipcRenderer.on('launchBomgar', () => {
launchBomgar()
})
ipcRenderer.on('openInstaller', () => {
openSoftware(0)
})
......
......@@ -8,6 +8,7 @@
<script src="../miscjs/addWindow.js"></script>
<script src="../miscjs/backToMain.js"></script>
<script src="../miscjs/openURL.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
<script src="./openSoftware/openSoftware.js"></script>
<script src="../miscjs/menuFunctionCalls.js"></script>
<script src="../miscjs/loadSoftwareBadges.js"></script>
......
......@@ -8,6 +8,7 @@
<script src="../miscjs/addWindow.js"></script>
<script src="../miscjs/backToMain.js"></script>
<script src="../miscjs/openURL.js"></script>
<script src="../miscjs/launchBomgar.js"></script>
<script src="../softwareManagement/openSoftware/openSoftware.js"></script>
<script src="../miscjs/menuFunctionCalls.js"></script>
<script src="../badgeManagement/yubiBadgeCheckpoint/yubiBadgeCheckpoint.js"></script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment