feat(settings): agregar opcion global para habilitar o deshabilitar saludo y selector de rol en dashboard

This commit is contained in:
2026-09-23 20:18:43 -03:00
parent 63511b9311
commit a188c3bd8f
7 changed files with 154 additions and 3 deletions
+6
View File
@@ -266,6 +266,11 @@ router.get('/', async (req, res) => {
{ start_time: '18:30', end_time: '22:30', date_display: '24/09', subject_name: 'Ingeniería de Software', subject_code: 'IS-301', shift: 'Noche', commission: { code: 'COM-3' }, status: 'PENDING', classroom: { code: 'Aula Magna' }, user: { name: 'Ing. Marcos Ruiz' } }
];
let show_role_banner = true;
if (apiData && apiData.ui && apiData.ui.show_role_banner !== undefined) {
show_role_banner = Boolean(apiData.ui.show_role_banner);
}
res.render('dashboard', {
title: role === 'bedelia' ? 'Panel Operativo de Bedelía - Edu-Space Admin' :
role === 'docente' ? 'Panel Docente - Edu-Space Admin' :
@@ -274,6 +279,7 @@ router.get('/', async (req, res) => {
user: req.user,
role,
actual_role,
show_role_banner,
stats,
role_data,
monthly_data,