aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:09:38 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2024-09-05 04:18:37 +0200
commitdc18849d182258f64adaaebab49f8f2dc46c64ee (patch)
tree8bbce7887c04dcf9b7b6cd96b7fa1c14dca64fb5 /apps
parentfc93517fc5b42da57f72353f96f95dde5314646f (diff)
downloadnextcloud-server-dc18849d182258f64adaaebab49f8f2dc46c64ee.tar.gz
nextcloud-server-dc18849d182258f64adaaebab49f8f2dc46c64ee.zip
fix: Recheck userglobal storages when loaded
Userglobal storages are now automatically recheck when loaded, similarly to how it is done for global storages. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index e1d47dbdc89..d9f940cca05 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1013,6 +1013,13 @@ MountConfigListView.prototype = _.extend({
// userglobal storages do not expose configuration data
$tr.find('.configuration').text(t('files_external', 'Admin defined'));
}
+
+ // don't recheck config automatically when there are a large number of storages
+ if (result.length < 20) {
+ self.recheckStorageConfig($tr);
+ } else {
+ self.updateStatus($tr, StorageConfig.Status.INDETERMINATE, t('files_external', 'Automatic status checking is disabled due to the large number of configured storages, click to check status'));
+ }
$rows = $rows.add($tr);
});
initApplicableUsersMultiselect(self.$el.find('.applicableUsers'), this._userListLimit);