From 83654aeefb4c1d55c889fb8b865716d4230e208f 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 81353380..ede2060c 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 c8382b11..2e40af1b 100644 --- a/next-ui/src/components/library/MenuLibrary.vue +++ b/next-ui/src/components/library/MenuLibrary.vue @@ -137,7 +137,6 @@ function updateLibrary() { }) } } - //endregion