Доработать UI до MVP

This commit is contained in:
AidarKC
2026-10-10 13:23:26 +03:00
parent e14e3dfa21
commit d138bd9464
8 changed files with 114 additions and 4 deletions
+8
View File
@@ -1395,6 +1395,14 @@ async function redirectToActiveKeyRotationIfNeeded() {
function renderApp() {
syncTrackedRouteHistory(window.location.pathname || '/');
const route = getRoute();
if (state.session.isAuthorized) {
const returnPath = window.sessionStorage.getItem('shine-public-return-path');
if (returnPath && returnPath.startsWith('/SHiNE/')) {
window.sessionStorage.removeItem('shine-public-return-path');
navigate(returnPath);
return;
}
}
const pageId = route.pageId || (state.session.isAuthorized ? 'messages-list' : 'start-view');
if (!state.session.isAuthorized && !PRE_AUTH_PAGES.includes(pageId) && !GUEST_ALLOWED_PAGES.has(pageId)) {