mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #59924 from nextcloud/backport/59904/stable32
[stable32] Fix(files): internal drag and drop
This commit is contained in:
commit
582862db5b
3 changed files with 6 additions and 6 deletions
|
|
@ -485,7 +485,7 @@ export default defineComponent({
|
|||
files,
|
||||
async (nodes, path) => {
|
||||
try {
|
||||
const { contents, folder } = await this.activeView!.getContents(path)
|
||||
const { contents, folder } = await this.currentView!.getContents(path)
|
||||
const conflicts = getConflicts(nodes, contents)
|
||||
if (conflicts.length === 0) {
|
||||
return nodes
|
||||
|
|
@ -517,9 +517,9 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
// We might not have the target directory fetched yet
|
||||
const cachedContents = this.filesStore.getNodesByPath(this.activeView.id, this.source.path)
|
||||
const cachedContents = this.filesStore.getNodesByPath(this.currentView.id, this.source.path)
|
||||
const contents = cachedContents.length === 0
|
||||
? (await this.activeView!.getContents(this.source.path)).contents
|
||||
? (await this.currentView!.getContents(this.source.path)).contents
|
||||
: cachedContents
|
||||
|
||||
const isCopy = event.ctrlKey
|
||||
|
|
|
|||
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