aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-05-09 18:11:58 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-05-10 03:00:37 +0200
commitb677d3e27d626a09a49794f0c3e41e9c75fcd8c7 (patch)
tree6b1aa7e8fb47a4b063cdd98c98c784d34d98db60 /apps/settings/templates
parentfc076271c791998272856b640be4b63cfe3263a2 (diff)
downloadnextcloud-server-b677d3e27d626a09a49794f0c3e41e9c75fcd8c7.tar.gz
nextcloud-server-b677d3e27d626a09a49794f0c3e41e9c75fcd8c7.zip
Show loading spinner until share settings are fully loaded
The inputs of the sharing settings are generated in a template in the server, but the listeners to react to changes in the elements and save the values in the server are loaded in the client once the DOM finishes loading. If the DOM takes long to load the user can start to interact with the settings before the listeners were set up and, therefore, the changes would not be saved in the server. However, as the inputs are modified the user would think that the changes were already saved. To address that now when the sharing settings are open a loading spinner is shown instead of the contents of the sharing settings, and only once the listeners to save the changes were set up the spinner is removed and the contents shown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/admin/sharing.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php
index d2c542248c1..781fdf3a49d 100644
--- a/apps/settings/templates/settings/admin/sharing.php
+++ b/apps/settings/templates/settings/admin/sharing.php
@@ -27,7 +27,7 @@
?>
-<div class="section" id="shareAPI">
+<div class="section loading" id="shareAPI">
<h2><?php p($l->t('Sharing'));?></h2>
<?php if ($_['sharingAppEnabled'] === false) { ?>
<p class="warning"><?php p($l->t('You need to enable the File sharing App.')); ?></p>