Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use file list instead of dir attribute
Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 authored and juliusknorr committed Jul 27, 2022
commit ecbab82a2e84fc668fe63af51bf52809ddc1c942
7 changes: 6 additions & 1 deletion src/view/FilesAppIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,12 @@ export default {
if (type === 'text') {
type = 'document'
}
const dir = parent.$('#dir').val()
let dir = '/'
if (OCA.Sharing?.PublicApp) {
dir = OCA.Sharing.PublicApp.currentFileList.getCurrentDirectory()
} else {
dir = OCA.Files.App.currentFileList.getCurrentDirectory()
}
const url = generateUrl('/apps/files/?dir=' + dir + '&richdocuments_create=' + type + '&richdocuments_filename=' + encodeURI(value))
window.open(url, '_blank')
}
Expand Down