From ccf2a6d6daf1e9d05afd53144f02e419e3dca98d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 24 Jun 2025 09:33:41 +0700 Subject: [PATCH] fix path route manual --- src/app.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index 56d83a8..34a4e5d 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -46,14 +46,14 @@ const generatePopupPath = (routeName: any, type: string) => { if (routeName.includes("organizationChart")) { return `${path}/chapter-1-user${type}-organization-chart`; } - if (routeName.includes("registry")) { + if (routeName.includes("registry") || routeName.includes("request-edit")) { return `${path}/chapter-2-user${type}-registry`; } if (routeName.includes("evaluate")) { return `${path}/chapter-3-user-evaluate`; } - if (routeName.includes("leave")) { + if (routeName.includes("leave") || routeName.includes("addAbsence")) { return `${path}/chapter-${type ? "3" : "4"}-user${type}-leave`; } @@ -79,7 +79,7 @@ const generatePopupPath = (routeName: any, type: string) => { return `${path}/chapter-14-user-service-testing`; } if (routeName.includes("Retire")) { - return `${path}/chapter-${type ? "5" : "11"}-user${type}-retire`; + return `${path}/chapter-${type ? "6" : "12"}-user${type}-retire`; } else { return manualConfig[routeName as keyof typeof manualConfig]; } @@ -93,6 +93,8 @@ const manualConfig = { addPortfolio: `${path}/chapter-5-user-portfolio`, addTransfer: `${path}/chapter-6-user-transfer`, KPIMain: `${path}/chapter-8-user-KPI`, + KPIAdd: `${path}/chapter-8-user-KPI`, + KPIEdit: `${path}/chapter-8-user-KPI`, KPIMainEvaluator: `${path}/chapter-9-user-KPI-evaluator`, };