mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
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>
This commit is contained in:
parent
2d7c44afd6
commit
c23321e956
1 changed files with 2 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue