Browse Source

Merge pull request #17086 from nextcloud/bugfix/noid/ctrl-click-apps

Fix opening apps with Ctrl+click
tags/v18.0.0beta1
Roeland Jago Douma 4 years ago
parent
commit
23b0b63c21
No account linked to committer's email address
3 changed files with 5 additions and 6 deletions
  1. 1
    1
      core/js/dist/main.js
  2. 1
    1
      core/js/dist/main.js.map
  3. 3
    4
      core/src/components/MainMenu.js

+ 1
- 1
core/js/dist/main.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/main.js.map
File diff suppressed because it is too large
View File


+ 3
- 4
core/src/components/MainMenu.js View File

@@ -77,10 +77,6 @@ export const setUp = () => {
$app = $app.closest('a')
}

// trigger redirect
// needed for ie, but also works for every browser
window.location = $app.href

if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) {
$app.find('svg').remove()
$app.find('div').remove() // prevent odd double-clicks
@@ -89,6 +85,9 @@ export const setUp = () => {
? 'icon-loading-small'
: 'icon-loading-small-dark'
))
// trigger redirect
// needed for ie, but also works for every browser
window.location = $app.attr('href')
} else {
// Close navigation when opening app in
// a new tab

Loading…
Cancel
Save