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
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-16 20:04:16 +0300
committerJulius Härtl <jus@bitgrid.net>2020-10-13 15:35:56 +0300
commit911b7080edf55cd9cef4435e8fa8dacdf922ae5b (patch)
tree66b7e5f22245f8ba7436e02cf30050433e99ca7b /src
parent9d7346dceddcfbf5356bb35c9b461e7575a15453 (diff)
Remove shareOwnerId from open/openWithTemplate
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/files.js8
-rw-r--r--src/view/FilesAppIntegration.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/files.js b/src/files.js
index 1541fcf1..92ae3715 100644
--- a/src/files.js
+++ b/src/files.js
@@ -210,23 +210,23 @@ window.OCA.RichDocuments = {
config: {
create: Types.getFileTypes()
},
- open: ({ path, fileId, shareOwnerId, fileList = {}, fileModel }) => {
+ open: ({ path, fileId, fileModel, fileList = {} }) => {
const [dir, file] = splitPath(path)
odfViewer.onEdit(file, {
fileId,
dir,
- shareOwnerId,
+ shareOwnerId: fileModel.get('shareOwnerId'),
fileList,
fileModel
})
},
- openWithTemplate: ({ path, fileId, templateId, shareOwnerId, fileList = {}, fileModel }) => {
+ openWithTemplate: ({ path, fileId, templateId, fileModel, fileList = {} }) => {
const [dir, file] = splitPath(path)
odfViewer.onEdit(file, {
fileId,
dir,
templateId,
- shareOwnerId,
+ shareOwnerId: fileModel.get('shareOwnerId'),
fileList,
fileModel
})
diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js
index eb520317..f85771a0 100644
--- a/src/view/FilesAppIntegration.js
+++ b/src/view/FilesAppIntegration.js
@@ -161,7 +161,7 @@ export default {
},
getFileModel() {
- if (this.fileModel !== null) {
+ if (this.fileModel) {
return this.fileModel
}
if (!this.getFileList()) {