diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2024-07-29 12:21:13 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-09-04 09:46:17 +0200 |
commit | 8e5dba2be0ad4726da4a3a2a89a21462bd3e84b1 (patch) | |
tree | 53753284402bbcfc8f6efdd072f1c2f17d161f60 /apps/files_external/js/settings.js | |
parent | baaed7f191cfe779c7ef231c21cc87f9041e36ab (diff) | |
download | nextcloud-server-8e5dba2be0ad4726da4a3a2a89a21462bd3e84b1.tar.gz nextcloud-server-8e5dba2be0ad4726da4a3a2a89a21462bd3e84b1.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/files_external/js/settings.js')
-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 c003778db6f..582276cad09 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -766,6 +766,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'); |