aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-29 12:09:38 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-09-04 09:43:28 +0200
commit05bf5730ad7df2ee285709cb47998cb9bfed376e (patch)
tree1d426de495f2b53544006c902855b885a0b1ca3b
parent4b2619530b72a0db802bd91619b723c72c867d52 (diff)
downloadnextcloud-server-05bf5730ad7df2ee285709cb47998cb9bfed376e.tar.gz
nextcloud-server-05bf5730ad7df2ee285709cb47998cb9bfed376e.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>
-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 3db2e67763a..fd1946b629c 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1009,6 +1009,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);