mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-21 06:39:52 -04:00
Add skeleton templates for various sections
- Created skeleton templates for events, notifications, plugins, presence, report, settings, and workflows to enhance loading states. - Implemented structured skeletons for tab details, tab events, maintenance backup, database tools, logging, multi-edit, presence, sessions, and system info. - Each template includes shimmer effects for loading indicators, improving user experience during data fetching.
This commit is contained in:
@@ -107,6 +107,7 @@ function getData() {
|
||||
})
|
||||
.always(function () {
|
||||
hideSpinner(); // Ensure the spinner is hidden in all cases
|
||||
hideWorkflowsSkeleton();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1376,5 +1377,12 @@ $(document).ready(function () {
|
||||
getData();
|
||||
});
|
||||
|
||||
function hideWorkflowsSkeleton() {
|
||||
$('#workflows-skeleton').fadeOut(250, function() { $(this).remove(); });
|
||||
}
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
setTimeout(hideWorkflowsSkeleton, 15000);
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user