diff options
author | Joas Schilling <coding@schilljs.com> | 2020-02-19 11:34:18 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-02-25 11:55:35 +0100 |
commit | 22e748ed3845f4c4863bcae78835b679fb30bc82 (patch) | |
tree | 35ff5269e380979eaea4742766e6f0a87ffa7176 /core/src/OC | |
parent | 0cf76aa2e8a66cd9b772be462fbb9b6633f32b32 (diff) | |
download | nextcloud-server-22e748ed3845f4c4863bcae78835b679fb30bc82.tar.gz nextcloud-server-22e748ed3845f4c4863bcae78835b679fb30bc82.zip |
Allow to create directories when they are selectable
Signed-off-by: Joas Schilling <coding@schilljs.com>
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() { |