Merge pull request #59924 from nextcloud/backport/59904/stable32

[stable32] Fix(files): internal drag and drop
This commit is contained in:
Joas Schilling 2026-05-06 14:51:19 +02:00 committed by GitHub
commit 582862db5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long