mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
fix(files): internal drag and drop
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
This commit is contained in:
parent
5f3889390f
commit
7fc0d15483
1 changed files with 3 additions and 3 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue