Adjust resource type to file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
e8fe00003b
commit
8a26022f92
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -39,7 +39,6 @@ export default {
|
|||
* @param {TypeDefinition} typeDefinition
|
||||
*/
|
||||
registerType(type, typeDefinition) {
|
||||
console.log('Type ' + type + ' registered')
|
||||
types[type] = typeDefinition;
|
||||
},
|
||||
trigger(type) {
|
||||
|
|
Loading…
Reference in New Issue