From b2305f227991c012d4f2ae5a900ae84e992f6ba1 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Thu, 27 Nov 2025 04:25:33 +0700 Subject: [PATCH] dev: hotfix, show main menu on enc list --- app/components/content/encounter/list.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/components/content/encounter/list.vue b/app/components/content/encounter/list.vue index 571fad79..5bf8318c 100644 --- a/app/components/content/encounter/list.vue +++ b/app/components/content/encounter/list.vue @@ -6,6 +6,7 @@ import Dialog from '~/components/pub/my-ui/modal/dialog.vue' import Header from '~/components/pub/my-ui/nav-header/prep.vue' import Filter from '~/components/pub/my-ui/nav-header/filter.vue' import RecordConfirmation from '~/components/pub/my-ui/confirmation/record-confirmation.vue' +import { useSidebar } from '~/components/pub/ui/sidebar/utils' // Libs import { getPositionAs } from '~/lib/roles' @@ -22,6 +23,10 @@ import { getList as getEncounterList, remove as removeEncounter, cancel as cance // UI import { toast } from '~/components/pub/ui/toast' + +const { setOpen } = useSidebar() +setOpen(true) + const { getActiveRole } = useUserStore() const activeRole = getActiveRole() const activePosition = ref(getPositionAs(activeRole)) @@ -223,9 +228,9 @@ watch( isRecordCancelOpen.value = true return } - + const basePath = getBasePath() - + if (props.type === 'encounter') { if (recAction.value === 'showDetail') { navigateTo(`${basePath}/${recId.value}/detail`)