fixed issue with sidebar not loading profile info on view switch and updated sidebar styling

This commit is contained in:
Keep Creating Online
2025-02-05 22:29:28 -05:00
parent 22ab53d338
commit 6f05fd8ca3
7 changed files with 144 additions and 93 deletions

View File

@@ -15,3 +15,23 @@ export async function loadView(viewUrl) {
"<p class='text-center text-red-500'>Failed to load content.</p>";
}
}
export const viewInitRegistry = {
"most-recent-videos": () => {
if (window.app && window.app.loadVideos) {
window.app.videoList = document.getElementById("videoList");
window.app.loadVideos();
}
// Force the profiles to update after the new view is in place.
if (window.app && window.app.forceRefreshAllProfiles) {
window.app.forceRefreshAllProfiles();
}
},
explore: () => {
console.log("Explore view loaded.");
},
subscriptions: () => {
console.log("Subscriptions view loaded.");
},
// Add additional view-specific functions here as needed.
};