fix(files): internal drag and drop

Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
This commit is contained in:
Jana Peper 2026-04-24 19:33:15 +02:00
parent f98eeccd2f
commit c957c0639f
No known key found for this signature in database
GPG key ID: 9F3FFC9C06527C94

View file

@ -447,7 +447,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
@ -479,9 +479,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