diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-03-14 17:41:25 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-19 13:06:55 +0100 |
commit | 8a26022f921f169198fa3e1b2dd79e62914c5dc0 (patch) | |
tree | 73eba09032a4655574530ef7316f2c1b1e232d08 | |
parent | e8fe00003b326867de480d919fdfe78ced9e7857 (diff) | |
download | nextcloud-server-8a26022f921f169198fa3e1b2dd79e62914c5dc0.tar.gz nextcloud-server-8a26022f921f169198fa3e1b2dd79e62914c5dc0.zip |
Adjust resource type to file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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) { |