]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust resource type to file
authorJulius Härtl <jus@bitgrid.net>
Thu, 14 Mar 2019 16:41:25 +0000 (17:41 +0100)
committerJulius Härtl <jus@bitgrid.net>
Tue, 19 Mar 2019 12:06:55 +0000 (13:06 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_sharing/src/collaborationresourceshandler.js
apps/files_sharing/src/views/CollaborationView.vue
core/src/OCP/collaboration.js

index fe27bd7fca07ba766ac2e050901067d623fc60e5..0ad7220d78ec593484117ccf4fa5f33f9eaae26b 100644 (file)
@@ -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) {
index 6a64abb1467a9b015150dbdbc88f1867711309f6..9049db9f6359a94419e34979aa37c744b71b4cad 100644 (file)
@@ -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>
index 96a20bffc9c2c1b90ffae5977554986b5c3550be..cfbdb467f5e66c71edbe06695828b82be7af16b5 100644 (file)
@@ -39,7 +39,6 @@ export default {
         * @param {TypeDefinition} typeDefinition
         */
        registerType(type, typeDefinition) {
-               console.log('Type ' + type + ' registered')
                types[type] = typeDefinition;
        },
        trigger(type) {