From c4ab408a098294e24e5e738c9929314f4483e3fb Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Thu, 27 Nov 2025 04:25:33 +0700 Subject: [PATCH] dev: hotfixes + show main menu on enc list + content-header default exporter --- app/components/content/encounter/list.vue | 9 +++++++-- app/components/pub/my-ui/content-header/index.ts | 2 ++ 2 files changed, 9 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`) diff --git a/app/components/pub/my-ui/content-header/index.ts b/app/components/pub/my-ui/content-header/index.ts index 0cb0404c..7c07f9d5 100644 --- a/app/components/pub/my-ui/content-header/index.ts +++ b/app/components/pub/my-ui/content-header/index.ts @@ -55,3 +55,5 @@ export interface Config { addNav?: ButtonNav printNav?: ButtonNav } + +export { default as ContentHeader } from './content-header.vue'