aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/collaborationresourceshandler.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/collaborationresourceshandler.js')
-rw-r--r--apps/files_sharing/src/collaborationresourceshandler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/src/collaborationresourceshandler.js b/apps/files_sharing/src/collaborationresourceshandler.js
index 8a668b3ce93..32e9f17ad77 100644
--- a/apps/files_sharing/src/collaborationresourceshandler.js
+++ b/apps/files_sharing/src/collaborationresourceshandler.js
@@ -8,10 +8,10 @@ window.OCP.Collaboration.registerType('file', {
const client = OC.Files.getClient();
client.getFileInfo(f).then((status, fileInfo) => {
resolve(fileInfo.id);
- }, () => {
+ }).fail(() => {
reject();
});
- }, false);
+ }, false, null, false, OC.dialogs.FILEPICKER_TYPE_CHOOSE, '', { allowDirectoryChooser: true });
});
},
typeString: t('files_sharing', 'Link to a file'),