Actualizar js/layout.js
This commit is contained in:
21
js/layout.js
21
js/layout.js
@@ -29,16 +29,17 @@ function renderSidebar() {
|
|||||||
|
|
||||||
const path = window.location.pathname.split("/").pop() || "index.html";
|
const path = window.location.pathname.split("/").pop() || "index.html";
|
||||||
|
|
||||||
// MENU ITEMS (Recuperados Dashboard y Usuarios)
|
// MENUS.
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{ name: "Dashboard", link: "panel.html", icon: "layout-dashboard" },
|
{ name: "Dashboard", link: "panel.html", icon: "layout-dashboard" },
|
||||||
{ name: "Servicios", link: "servicios.html", icon: "briefcase" },
|
{ name: "Servicios", link: "servicios.html", icon: "briefcase" },
|
||||||
{ name: "Calendario", link: "calendario.html", icon: "calendar" },
|
{ name: "Proveedores", link: "proveedores.html", icon: "building-2" }, // Nuevo nombre para el buzón actual
|
||||||
{ name: "Clientes", link: "clientes.html", icon: "users" },
|
{ name: "Calendario", link: "calendario.html", icon: "calendar" },
|
||||||
{ name: "Usuarios", link: "usuarios.html", icon: "user-cog" },
|
{ name: "Clientes", link: "clientes.html", icon: "users" },
|
||||||
{ name: "Automatizaciones", link: "automatizaciones.html", icon: "zap" },
|
{ name: "Usuarios", link: "usuarios.html", icon: "user-cog" },
|
||||||
{ name: "Configuración", link: "configuracion.html", icon: "settings" },
|
{ 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 linksHtml = menuItems.map(item => {
|
||||||
const isActive = path === item.link;
|
const isActive = path === item.link;
|
||||||
|
|||||||
Reference in New Issue
Block a user