diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-07-21 15:56:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 15:56:34 +0200 |
commit | 6c42874f04477a9741089bd4763ad47ad4130b2f (patch) | |
tree | 2074b352486fc1d02efc07231cf48ae68be7d185 /core | |
parent | 58a2989c4a7a27d995f41bb057e243f1629d6ace (diff) | |
parent | 003c76cca228025d49e8afac7add5d8d0eed4eb7 (diff) | |
download | nextcloud-server-6c42874f04477a9741089bd4763ad47ad4130b2f.tar.gz nextcloud-server-6c42874f04477a9741089bd4763ad47ad4130b2f.zip |
Merge pull request #33297 from nextcloud/fix/filepicker-new-button
FilePicker: Hide `newButton` outline if only picking is allowed
Diffstat (limited to 'core')
-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 e2996de8f12..2570586c6cf 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -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) { |