Skip to content

Commit 431eece

Browse files
committed
Filepicker - hide empty create action box if creation is not allowed
Signed-off-by: szaimen <szaimen@e.mail.de>
1 parent 2766df9 commit 431eece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/OC/dialogs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ const Dialogs = {
320320
}
321321

322322
var newButton = self.$filePicker.find('.actions.creatable .button-add')
323-
if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) {
324-
newButton.hide()
323+
if (type === this.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) {
324+
self.$filePicker.find('.actions.creatable').hide()
325325
}
326326
newButton.on('focus', function() {
327327
self.$filePicker.ocdialog('setEnterCallback', function() {

0 commit comments

Comments
 (0)