Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/FilesAppIntegration.js')
-rw-r--r--src/view/FilesAppIntegration.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js
index 01e41ba9..6a657c8f 100644
--- a/src/view/FilesAppIntegration.js
+++ b/src/view/FilesAppIntegration.js
@@ -34,6 +34,8 @@ export default {
fileList: undefined,
+ filePath: undefined,
+
/* Views: people currently editing the file */
views: {},
@@ -50,10 +52,11 @@ export default {
}
},
- init({ fileName, fileId, sendPostMessage, fileList, fileModel }) {
+ init({ fileName, fileId, filePath, sendPostMessage, fileList, fileModel }) {
this.fileName = fileName
this.fileId = fileId
this.fileList = fileList
+ this.filePath = filePath
this.fileModel = fileModel
this.sendPostMessage = sendPostMessage
@@ -595,6 +598,17 @@ export default {
NewFileMenu._openTemplatePicker(Preload.create.type, fileType.mime, Preload.create.filename + '.' + fileType.extension)
})
}, 250)
+ },
+
+ loggingContext: function() {
+ return {
+ currentUser: OC.getCurrentUser()?.uid,
+ file: {
+ sharingToken: document.getElementById('sharingToken')?.value,
+ fileId: this.fileId,
+ filePath: (this.filePath ?? '') + '/' + this.fileName
+ }
+ }
}
}