Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Adjust resource type to file
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 19, 2019
commit 8a26022f921f169198fa3e1b2dd79e62914c5dc0
2 changes: 1 addition & 1 deletion apps/files_sharing/src/collaborationresourceshandler.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/views/CollaborationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion core/src/OCP/collaboration.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default {
* @param {TypeDefinition} typeDefinition
*/
registerType(type, typeDefinition) {
console.log('Type ' + type + ' registered')
types[type] = typeDefinition;
},
trigger(type) {
Expand Down