diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-08-21 17:00:21 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2019-08-21 20:07:42 +0000 |
commit | 09efc4d6cf3cc10d478b8bf869ead83e2dbcb9f0 (patch) | |
tree | ed9876af528b69c6ff42ea4953cd6fc793f09656 /apps/files_sharing/src/collaborationresourceshandler.js | |
parent | f5352b9c6738e22f94115ffe6afdd0a792cc6834 (diff) | |
download | nextcloud-server-09efc4d6cf3cc10d478b8bf869ead83e2dbcb9f0.tar.gz nextcloud-server-09efc4d6cf3cc10d478b8bf869ead83e2dbcb9f0.zip |
Properly handle failures and allow choosing folders for projects
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/collaborationresourceshandler.js')
-rw-r--r-- | apps/files_sharing/src/collaborationresourceshandler.js | 4 |
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'), |