Actualizar js/layout.js

This commit is contained in:
2026-02-15 15:56:20 +00:00
parent 8a84b5df8a
commit c98d126827

View File

@@ -29,16 +29,17 @@ function renderSidebar() {
const path = window.location.pathname.split("/").pop() || "index.html";
// MENU ITEMS (Recuperados Dashboard y Usuarios)
const menuItems = [
{ name: "Dashboard", link: "panel.html", icon: "layout-dashboard" },
{ name: "Servicios", link: "servicios.html", icon: "briefcase" },
{ name: "Calendario", link: "calendario.html", icon: "calendar" },
{ name: "Clientes", link: "clientes.html", icon: "users" },
{ name: "Usuarios", link: "usuarios.html", icon: "user-cog" },
{ name: "Automatizaciones", link: "automatizaciones.html", icon: "zap" },
{ name: "Configuración", link: "configuracion.html", icon: "settings" },
];
// MENUS.
const menuItems = [
{ name: "Dashboard", link: "panel.html", icon: "layout-dashboard" },
{ name: "Servicios", link: "servicios.html", icon: "briefcase" },
{ name: "Proveedores", link: "proveedores.html", icon: "building-2" }, // Nuevo nombre para el buzón actual
{ name: "Calendario", link: "calendario.html", icon: "calendar" },
{ name: "Clientes", link: "clientes.html", icon: "users" },
{ name: "Usuarios", link: "usuarios.html", icon: "user-cog" },
{ name: "Automatizaciones", link: "automatizaciones.html", icon: "zap" }, // Queda libre para lo nuevo
{ name: "Configuración", link: "configuracion.html", icon: "settings" },
];
const linksHtml = menuItems.map(item => {
const isActive = path === item.link;