From 3d59d4ed2b144cee9ba8f456a08dd345d371ca22 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Wed, 3 Jul 2024 11:09:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20path=20manual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.config.ts | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index d766e78..a669b0a 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -38,16 +38,27 @@ const generatePopupPath = (routeName: any) => { if (routeName.includes("leave")) { return `${path}/manual/chapter-4-user-leave`; } - // if (routeName.includes("compete")) { - // return `${path}/manual/chapter-10-admin-recruit`; - // } - // if (routeName.includes("registryNew")) { - // return `${path}/manual/chapter-7-admin-registry`; - // } - // if (routeName.includes("registry")) { - // return `${path}/manual/chapter-7-admin-registry`; - // } - else { + if (routeName.includes("evaluate")) { + return `${path}/manual/chapter-3-user-evaluate`; + } + if (routeName.includes("portfolio")) { + return `${path}/manual/chapter-5-user-portfolio`; + } + if (routeName.includes("transfer")) { + return `${path}/manual/chapter-6-user-transfer`; + } + if (routeName.includes("appealComplain")) { + return `${path}/manual/chapter-7-user-appeal-complain`; + } + if (routeName.includes("KPI")) { + return `${path}/manual/chapter-9-user-KPI-evaluator`; + } + if (routeName.includes("scholarship")) { + return `${path}/manual/chapter-10-user-scholarship`; + } + if (routeName.includes("retire")) { + return `${path}/manual/chapter-11-user-retire`; + } else { return manualConfig[routeName as keyof typeof manualConfig]; } };