chore: update htmx and suite_app javascript
All checks were successful
BotUI CI / build (push) Successful in 2m51s
All checks were successful
BotUI CI / build (push) Successful in 2m51s
This commit is contained in:
parent
756da22dd5
commit
6afeeb311f
2 changed files with 12 additions and 4 deletions
|
|
@ -208,6 +208,11 @@
|
|||
// Debug logging
|
||||
console.log("handleWebSocketMessage called with:", { messageType, message });
|
||||
|
||||
// Hide initial loading overlay when first bot message arrives
|
||||
if (window.hideLoadingOverlay) {
|
||||
setTimeout(window.hideLoadingOverlay, 300);
|
||||
}
|
||||
|
||||
// Handle suggestions array from BotResponse
|
||||
if (message.suggestions && Array.isArray(message.suggestions) && message.suggestions.length > 0) {
|
||||
clearSuggestions();
|
||||
|
|
|
|||
|
|
@ -751,13 +751,16 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
// Check bot public status early
|
||||
checkBotPublicStatus();
|
||||
|
||||
// Hide loading overlay
|
||||
setTimeout(() => {
|
||||
// Provide a global function to hide the loading overlay
|
||||
window.hideLoadingOverlay = function() {
|
||||
const loadingOverlay = document.getElementById("loadingOverlay");
|
||||
if (loadingOverlay) {
|
||||
if (loadingOverlay && !loadingOverlay.classList.contains("hidden")) {
|
||||
loadingOverlay.classList.add("hidden");
|
||||
}
|
||||
}, 500);
|
||||
};
|
||||
|
||||
// Failsafe: hide after 10 seconds if no message arrives
|
||||
setTimeout(window.hideLoadingOverlay, 10000);
|
||||
|
||||
// Simple apps menu handling
|
||||
const appsBtn = document.getElementById("appsButton");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue