diff --git a/src/main/index.js b/src/main/index.js index 5998ec39..dff15bef 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -27,6 +27,13 @@ function runApp() { click: () => { browserWindow.webContents.send('showVideoStatistics') } + }, + { + label: 'Open in a New Window', + visible: parameters.linkURL.includes((new URL(browserWindow.webContents.getURL())).origin), + click: () => { + createWindow({ replaceMainWindow: false, windowStartupUrl: parameters.linkURL, showWindowNow: true }) + } } ] }) diff --git a/src/renderer/components/side-nav/side-nav.css b/src/renderer/components/side-nav/side-nav.css index 5e0877b8..738c3961 100644 --- a/src/renderer/components/side-nav/side-nav.css +++ b/src/renderer/components/side-nav/side-nav.css @@ -89,6 +89,11 @@ transform: translateY(-50%); } +.channelLink { + color: inherit; + text-decoration: inherit; +} + .channelThumbnail { border-radius: 50%; width: 35px; diff --git a/src/renderer/components/side-nav/side-nav.js b/src/renderer/components/side-nav/side-nav.js index 60b81295..96945540 100644 --- a/src/renderer/components/side-nav/side-nav.js +++ b/src/renderer/components/side-nav/side-nav.js @@ -77,7 +77,6 @@ export default Vue.extend({ navigate: function (route) { this.$router.push('/' + route) }, - goToChannel: function (id) { this.$router.push({ path: `/channel/${id}` }) } diff --git a/src/renderer/components/side-nav/side-nav.vue b/src/renderer/components/side-nav/side-nav.vue index ccfd1a6c..f859356f 100644 --- a/src/renderer/components/side-nav/side-nav.vue +++ b/src/renderer/components/side-nav/side-nav.vue @@ -224,23 +224,28 @@ :title="channel.name" role="button" tabindex="0" - @click="goToChannel(channel.id)" @keypress="goToChannel(channel.id)" + @click="goToChannel(channel.id)" > -