mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #42494 from nextcloud/backport/42457/stable28
This commit is contained in:
commit
e279d45196
4 changed files with 21 additions and 7 deletions
|
|
@ -105,6 +105,7 @@ import { showError } from '@nextcloud/dialogs'
|
|||
import { translate as t } from '@nextcloud/l10n'
|
||||
import { vOnClickOutside } from '@vueuse/components'
|
||||
import moment from '@nextcloud/moment'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import Vue, { defineComponent } from 'vue'
|
||||
|
||||
import { action as sidebarAction } from '../actions/sidebarAction.ts'
|
||||
|
|
@ -398,8 +399,14 @@ export default defineComponent({
|
|||
event.stopPropagation()
|
||||
},
|
||||
|
||||
execDefaultAction(...args) {
|
||||
this.$refs.actions.execDefaultAction(...args)
|
||||
execDefaultAction(event) {
|
||||
event.preventDefault()
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
|
||||
return false
|
||||
}
|
||||
|
||||
this.$refs.actions.execDefaultAction(event)
|
||||
},
|
||||
|
||||
openDetailsIfAvailable(event) {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ import { FileType, Permission, Folder, File as NcFile, NodeStatus, Node, View }
|
|||
import { getUploader } from '@nextcloud/upload'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { translate as t } from '@nextcloud/l10n'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { vOnClickOutside } from '@vueuse/components'
|
||||
import Vue from 'vue'
|
||||
|
||||
|
|
@ -281,8 +282,14 @@ export default Vue.extend({
|
|||
event.stopPropagation()
|
||||
},
|
||||
|
||||
execDefaultAction(...args) {
|
||||
this.$refs.actions.execDefaultAction(...args)
|
||||
execDefaultAction(event) {
|
||||
event.preventDefault()
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
|
||||
return false
|
||||
}
|
||||
|
||||
this.$refs.actions.execDefaultAction(event)
|
||||
},
|
||||
|
||||
openDetailsIfAvailable(event) {
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue