Skip to content

Commit

Permalink
Merge pull request #33297 from nextcloud/fix/filepicker-new-button
Browse files Browse the repository at this point in the history
FilePicker: Hide `newButton` outline if only picking is allowed
  • Loading branch information
PVince81 committed Jul 21, 2022
2 parents 58a2989 + 003c76c commit 6c42874
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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()
self.$filePicker.find('.actions.creatable').hide()
}
newButton.on('focus', function() {
self.$filePicker.ocdialog('setEnterCallback', function(event) {
Expand Down
4 changes: 2 additions & 2 deletions dist/core-login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-login.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

0 comments on commit 6c42874

Please sign in to comment.