diff --git a/ui/src/views/asistencias/AsistenciasIndex.vue b/ui/src/views/asistencias/AsistenciasIndex.vue index 730449c..aa867b0 100644 --- a/ui/src/views/asistencias/AsistenciasIndex.vue +++ b/ui/src/views/asistencias/AsistenciasIndex.vue @@ -61,12 +61,12 @@ onMounted(async () => { const navigateToCreateForm = () => { // Assuming route for creating a new asistencia is named 'AsistenciaFormNew' - router.push({ name: 'AsistenciaFormNew' }); + router.push({ name: 'asistencias-new' }); }; const handleEditAsistencia = (asistenciaId) => { // Assuming route for editing is named 'AsistenciaFormEdit' - router.push({ name: 'AsistenciaFormEdit', params: { id: asistenciaId } }); + router.push({ name: 'asistencias-edit', params: { id: asistenciaId } }); }; diff --git a/ui/src/views/empleados/EmpleadosIndex.vue b/ui/src/views/empleados/EmpleadosIndex.vue index 759aa6c..14e39cc 100644 --- a/ui/src/views/empleados/EmpleadosIndex.vue +++ b/ui/src/views/empleados/EmpleadosIndex.vue @@ -180,7 +180,7 @@ onMounted(() => { }) const goToCreateEmployee = () => { - router.push('/empleados/new') // Assuming this is the route for EmpleadoForm.vue for creation + router.push({ name: 'empleados-new' }); } diff --git a/ui/src/views/planillas/PlanillasIndex.vue b/ui/src/views/planillas/PlanillasIndex.vue index 55eefc5..3246986 100644 --- a/ui/src/views/planillas/PlanillasIndex.vue +++ b/ui/src/views/planillas/PlanillasIndex.vue @@ -65,14 +65,14 @@ onMounted(async () => { const navigateToCreateForm = () => { // Assuming your route for creating a new planilla is named 'PlanillaFormNew' // This name should match what's defined in your router configuration - router.push({ name: 'PlanillaFormNew' }); + router.push({ name: 'planillas-new' }); }; // Navigate to the form for editing an existing planilla const handleEditPlanilla = (planillaId) => { // Assuming your route for editing is named 'PlanillaFormEdit' // This name should match what's defined in your router configuration - router.push({ name: 'PlanillaFormEdit', params: { id: planillaId } }); + router.push({ name: 'planillas-edit', params: { id: planillaId } }); }; diff --git a/ui/src/views/tareas/TareasIndex.vue b/ui/src/views/tareas/TareasIndex.vue index 6cfe75d..ca08ff8 100644 --- a/ui/src/views/tareas/TareasIndex.vue +++ b/ui/src/views/tareas/TareasIndex.vue @@ -61,12 +61,12 @@ onMounted(async () => { const navigateToCreateForm = () => { // Assuming route for creating a new tarea is named 'TareaFormNew' - router.push({ name: 'TareaFormNew' }); + router.push({ name: 'tareas-new' }); }; const handleEditTarea = (tareaId) => { // Assuming route for editing is named 'TareaFormEdit' - router.push({ name: 'TareaFormEdit', params: { id: tareaId } }); + router.push({ name: 'tareas-edit', params: { id: tareaId } }); };