From 71f7dc2236cfd9431fd061cb54ab488d6bee1dc4 Mon Sep 17 00:00:00 2001 From: daeyeon ko Date: Fri, 20 Dec 2024 17:59:10 +0900 Subject: [PATCH] fix: popover target slot width changes according to lsb width change in metricLSB, verification message when adding a user (#5239) * fix: display verification message after checking user search input Signed-off-by: daeyeon ko * chore(language): en, jp, ko translation added Signed-off-by: daeyeon ko * feat: enable the double-click option for verticalLayout Signed-off-by: daeyeon ko * feat: minWidth spec added Signed-off-by: daeyeon ko * fix: the width of metricExplorerLSB is not applied correctly Signed-off-by: daeyeon ko * refactor: verticalLayout dbclick logic & apply LSB minWidth Signed-off-by: daeyeon ko * fix: typo & type Signed-off-by: daeyeon ko * refactor: use a hook to get the current menu ID Signed-off-by: daeyeon ko * chore: remove unused variable Signed-off-by: daeyeon ko --------- Signed-off-by: daeyeon ko --- .../page-layouts/VerticalPageLayout.vue | 18 ++- .../AssetInventoryContainer.vue | 4 +- .../asset-inventory/AssetInventoryLSB.vue | 6 +- .../components/MetricExplorerLSB.vue | 10 +- .../iam/components/UserManagementAddUser.vue | 71 +++++------ .../console-translation-2.8.babel | 21 ++++ packages/language-pack/en.json | 1 + packages/language-pack/ja.json | 1 + packages/language-pack/ko.json | 1 + .../src/data-display/popover/PPopover.vue | 7 +- .../src/data-display/popover/story-helper.ts | 16 +++ .../PVerticalLayout.stories.ts | 9 +- .../vertical-layout/PVerticalLayout.vue | 110 +++++++++++++++--- .../layouts/vertical-layout/story-helper.ts | 16 +++ 14 files changed, 223 insertions(+), 68 deletions(-) diff --git a/apps/web/src/common/modules/page-layouts/VerticalPageLayout.vue b/apps/web/src/common/modules/page-layouts/VerticalPageLayout.vue index af9d8e3b3a..5c540d9aa6 100644 --- a/apps/web/src/common/modules/page-layouts/VerticalPageLayout.vue +++ b/apps/web/src/common/modules/page-layouts/VerticalPageLayout.vue @@ -9,6 +9,9 @@ import { PVerticalLayout } from '@cloudforet/mirinae'; import { useGlobalUIStore } from '@/store/global-ui/global-ui-store'; +import { MENU_ID } from '@/lib/menu/config'; + +import { useCurrentMenuId } from '@/common/composables/current-menu-id'; import FNB from '@/common/modules/navigations/FNB.vue'; import { useGnbStore } from '@/common/modules/navigations/stores/gnb-store'; import type { Breadcrumb } from '@/common/modules/page-layouts/type'; @@ -35,6 +38,9 @@ const { width: contentsWidth } = useElementSize(contentRef); const storeState = reactive({ isMinimizeNavRail: computed(() => gnbGetters.isMinimizeNavRail), }); + +const { currentMenuId } = useCurrentMenuId(); + const state = reactive({ padding: computed(() => { if (contentsWidth.value <= 1920) return '0'; @@ -52,10 +58,14 @@ watch(() => props.breadcrumbs, () => {