diff options
-rw-r--r-- | apps/files_sharing/src/collaborationresourceshandler.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/src/views/CollaborationView.vue | 2 | ||||
-rw-r--r-- | core/src/OCP/collaboration.js | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_sharing/src/collaborationresourceshandler.js b/apps/files_sharing/src/collaborationresourceshandler.js index fe27bd7fca0..0ad7220d78e 100644 --- a/apps/files_sharing/src/collaborationresourceshandler.js +++ b/apps/files_sharing/src/collaborationresourceshandler.js @@ -1,7 +1,7 @@ __webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/'); __webpack_nonce__ = btoa(OC.requestToken); -window.OCP.Collaboration.registerType('files', { +window.OCP.Collaboration.registerType('file', { action: () => { return new Promise((resolve, reject) => { OC.dialogs.filepicker('Link to a file', function (f) { diff --git a/apps/files_sharing/src/views/CollaborationView.vue b/apps/files_sharing/src/views/CollaborationView.vue index 6a64abb1467..9049db9f635 100644 --- a/apps/files_sharing/src/views/CollaborationView.vue +++ b/apps/files_sharing/src/views/CollaborationView.vue @@ -21,7 +21,7 @@ --> <template> - <collection-list v-if="fileId" type="files" :id="fileId" :name="filename"></collection-list> + <collection-list v-if="fileId" type="file" :id="fileId" :name="filename"></collection-list> </template> <script> diff --git a/core/src/OCP/collaboration.js b/core/src/OCP/collaboration.js index 96a20bffc9c..cfbdb467f5e 100644 --- a/core/src/OCP/collaboration.js +++ b/core/src/OCP/collaboration.js @@ -39,7 +39,6 @@ export default { * @param {TypeDefinition} typeDefinition */ registerType(type, typeDefinition) { - console.log('Type ' + type + ' registered') types[type] = typeDefinition; }, trigger(type) { |