From 6ccfb9bbae8f735d5e0973d48aa5d13c2cc22613 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 11 Dec 2025 13:08:51 +0800 Subject: [PATCH] make drawer stories work with dialogs --- next-ui/src/components/layout/app/drawer/Drawer.stories.ts | 6 ++++-- next-ui/src/components/library/MenuLibrary.vue | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/next-ui/src/components/layout/app/drawer/Drawer.stories.ts b/next-ui/src/components/layout/app/drawer/Drawer.stories.ts index 81353380e..ede2060c2 100644 --- a/next-ui/src/components/layout/app/drawer/Drawer.stories.ts +++ b/next-ui/src/components/layout/app/drawer/Drawer.stories.ts @@ -2,15 +2,17 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite' import Drawer from './Drawer.vue' import { useAppStore } from '@/stores/app' +import DialogConfirmEditInstance from '@/components/dialog/ConfirmEditInstance.vue' +import SnackQueue from '@/components/SnackQueue.vue' const meta = { component: Drawer, render: (args: object) => ({ - components: { Drawer }, + components: { Drawer, DialogConfirmEditInstance, SnackQueue }, setup() { return { args } }, - template: '', + template: '', }), parameters: { // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout diff --git a/next-ui/src/components/library/MenuLibrary.vue b/next-ui/src/components/library/MenuLibrary.vue index c8382b117..2e40af1bb 100644 --- a/next-ui/src/components/library/MenuLibrary.vue +++ b/next-ui/src/components/library/MenuLibrary.vue @@ -137,7 +137,6 @@ function updateLibrary() { }) } } - //endregion