Adjust resource type to file

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-03-14 17:41:25 +01:00
parent e8fe00003b
commit 8a26022f92
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
3 changed files with 2 additions and 3 deletions

View 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) {

View 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>

View File

@ -39,7 +39,6 @@ export default {
* @param {TypeDefinition} typeDefinition
*/
registerType(type, typeDefinition) {
console.log('Type ' + type + ' registered')
types[type] = typeDefinition;
},
trigger(type) {