diff --git a/src/background.js b/src/background.js index 8cb73b6..bd95828 100644 --- a/src/background.js +++ b/src/background.js @@ -1,7 +1,7 @@ 'use strict' const log = require('electron-log'); -import { app, protocol, BrowserWindow, Menu } from 'electron' +import { app, protocol, BrowserWindow, Menu, shell } from 'electron' import { createProtocol, /* installVueDevtools */ @@ -170,16 +170,21 @@ app.on('ready', async () => { ] }, { - // About Menu - label: i18n.t("Common.Menu.About.menuAbout"), + // Help Menu + label: i18n.t("Common.Menu.Help.menuHelp"), submenu: [ { - label: i18n.t("Common.Menu.About.menuAbout"), - click() { - BrowserWindow.loadURL('/about') - } - // TODO: Add action + label: i18n.t("Common.Menu.Help.menuForum"), + click: () => { shell.openExternal("https://forums.plex.tv/t/598539") } + }, + { + label: i18n.t("Common.Menu.Help.menuGithub"), + click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG") } + }, + { + label: i18n.t("Common.Menu.Help.menuManual"), + click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki") } } ] } diff --git a/src/locales/en.json b/src/locales/en.json index e01f78c..7cf729d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -47,10 +47,12 @@ "menuZoomOut": "Zoom Out", "menuToggleFullScreen": "Toggle Full Screen" }, - "About":{ - "menuAbout": "About" + "Help":{ + "menuHelp": "Help", + "menuForum": "Forums", + "menuGithub": "Github", + "menuManual": "Manual" } - } }, "Modules": {