LCOV - code coverage report
Current view: top level - src/platform/customNodes/manager/composables/dialogs - useManagerSurveyDialog.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 55.6 % 9 5
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import { useDialogService } from '@/services/dialogService'
       2              : import { useDialogStore } from '@/stores/dialogStore'
       3              : import ManagerSurveyDialog from '@/platform/customNodes/manager/components/survey/ManagerSurveyDialog.vue'
       4              : 
       5         2355 : const DIALOG_KEY = 'global-manager-survey'
       6              : 
       7         2009 : export function useManagerSurveyDialog() {
       8         2009 :   const dialogService = useDialogService()
       9         2009 :   const dialogStore = useDialogStore()
      10              : 
      11            0 :   function hide() {
      12            0 :     dialogStore.closeDialog({ key: DIALOG_KEY })
      13              :   }
      14              : 
      15            0 :   function show() {
      16            0 :     dialogService.showLayoutDialog({
      17              :       key: DIALOG_KEY,
      18              :       component: ManagerSurveyDialog,
      19              :       props: {
      20              :         onClose: hide
      21              :       }
      22              :     })
      23              :   }
      24              : 
      25         2009 :   return {
      26              :     show,
      27              :     hide
      28              :   }
      29              : }
        

Generated by: LCOV version 2.0-1