feat: Pre-renderizar la navegación del dashboard para mejorar el rendimiento y evitar promesas no resueltas
This commit is contained in:
@@ -22,7 +22,12 @@
|
||||
<body class="min-h-screen pixel-grid-bg pt-14" style="background-image: url('/assets/images/background.svg'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat;">
|
||||
|
||||
<% if (useDashboardNav) { %>
|
||||
<%- include('../partials/dashboard_nav') %>
|
||||
<%# If the server pre-rendered the dashboard nav it will be available as dashboardNav (string) %>
|
||||
<% if (typeof dashboardNav !== 'undefined' && dashboardNav) { %>
|
||||
<%- dashboardNav %>
|
||||
<% } else { %>
|
||||
<%- include('../partials/dashboard_nav') %>
|
||||
<% } %>
|
||||
<% } else if (!hideNavbar) { %>
|
||||
<%- include('../partials/navbar', { appName }) %>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user