Skip to content

Commit

Permalink
Filepicker - hide empty create action box if creation is not allowed
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Jul 16, 2021
1 parent 2766df9 commit 6f259cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/OC/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ const Dialogs = {

var newButton = self.$filePicker.find('.actions.creatable .button-add')
if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) {
newButton.hide()
newButton.parentNode.hide()
}
newButton.on('focus', function() {
self.$filePicker.ocdialog('setEnterCallback', function() {
Expand Down

0 comments on commit 6f259cc

Please sign in to comment.