diff options
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/dialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 9d724b069ae..e73b8d0d047 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -299,7 +299,7 @@ const Dialogs = { } var newButton = self.$filePicker.find('.actions.creatable .button-add') - if (type === self.FILEPICKER_TYPE_CHOOSE) { + if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) { newButton.hide() } newButton.on('focus', function() { |