diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-07-29 12:21:13 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-09-04 23:19:37 +0200 |
commit | 66c689083bea1dab740416d28aab380912a09e06 (patch) | |
tree | 4cb476eb03bf68279038cbfe7961a3d3124c40f2 /apps | |
parent | 8a970298579914f51803b37133198ab88ddba0d9 (diff) | |
download | nextcloud-server-66c689083bea1dab740416d28aab380912a09e06.tar.gz nextcloud-server-66c689083bea1dab740416d28aab380912a09e06.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>
Diffstat (limited to 'apps')
-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 02597c016e1..78952882f95 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'); |