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 17, 2021
1 parent 2766df9 commit 431eece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/OC/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ const Dialogs = {
}

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

0 comments on commit 431eece

Please sign in to comment.