Signed-off-by: Julius Härtl <jus@bitgrid.net>
__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) {
-->
<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>
* @param {TypeDefinition} typeDefinition
*/
registerType(type, typeDefinition) {
- console.log('Type ' + type + ' registered')
types[type] = typeDefinition;
},
trigger(type) {