diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-07-29 12:21:13 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-09-05 04:18:38 +0200 |
commit | b72aebf7bee1b3254318de90bf7e2bd1c88dfe93 (patch) | |
tree | 8cc75d1d1291c4e32efe41f465d19ef80de199ba | |
parent | fa28a1da649d5e10d3de0963a646435db463aa40 (diff) | |
download | nextcloud-server-b72aebf7bee1b3254318de90bf7e2bd1c88dfe93.tar.gz nextcloud-server-b72aebf7bee1b3254318de90bf7e2bd1c88dfe93.zip |
fix: Reset selected backend when adding a new storage
As a new storage is added by selecting a backend the selected backend
needs to be reset. Otherwise it is not possible to add another storage
with the same backend.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | apps/files_external/js/settings.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 390fa8fea8c..1225115eff2 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -770,6 +770,8 @@ MountConfigListView.prototype = _.extend({ storageConfig.backend = $target.val(); $tr.find('.mountPoint input').val(''); + $tr.find('.selectBackend').prop('selectedIndex', 0) + var onCompletion = jQuery.Deferred(); $tr = this.newStorage(storageConfig, onCompletion); $tr.find('.applicableToAllUsers').prop('checked', false).trigger('change'); |