Merge pull request #38163 from nextcloud/show-loading-spinner-until-share-settings-are-fully-loaded

This commit is contained in:
Pytal 2023-05-10 17:20:56 -07:00 committed by GitHub
commit 83ed1fb004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1129,6 +1129,10 @@ table.grid td.date {
}
#shareAPI {
&.loading > div {
display: none;
}
p {
padding-bottom: 0.8em;
}

View file

@ -286,4 +286,6 @@ window.addEventListener('DOMContentLoaded', () => {
if (document.getElementById('security-warning') !== null) {
setupChecks()
}
$('#shareAPI').removeClass('loading')
})

View file

@ -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>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long