LCOV - code coverage report
Current view: top level - src/components - MenuHamburger.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 90.9 % 11 10
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2         2758 :   <div
       3              :     v-show="workspaceState.focusMode"
       4              :     class="no-drag fixed top-0 right-0 z-overlay flex"
       5              :   >
       6              :     <Button
       7              :       :tooltip="$t('menu.showMenu')"
       8              :       variant="muted-textonly"
       9              :       size="lg"
      10              :       :aria-label="$t('menu.showMenu')"
      11              :       aria-live="assertive"
      12              :       @click="exitFocusMode"
      13              :       @contextmenu="showNativeSystemMenu"
      14              :     >
      15              :       <i class="icon-[lucide--menu]" />
      16              :     </Button>
      17              :     <div class="window-actions-spacer" />
      18              :   </div>
      19              : </template>
      20              : 
      21              : <script setup lang="ts">
      22              : import { watchEffect } from 'vue'
      23              : 
      24              : import Button from '@comfyorg/design-system/button/Button'
      25              : import { useSettingStore } from '@/platform/settings/settingStore'
      26              : import { app } from '@/scripts/app'
      27              : import { useWorkspaceStore } from '@/stores/workspaceStore'
      28              : import { showNativeSystemMenu } from '@/utils/envUtil'
      29              : 
      30         2355 : const workspaceState = useWorkspaceStore()
      31         2355 : const settingStore = useSettingStore()
      32         2355 : const exitFocusMode = () => {
      33            0 :   workspaceState.focusMode = false
      34              : }
      35              : 
      36         2355 : watchEffect(() => {
      37         2741 :   if (settingStore.get('Comfy.UseNewMenu') !== 'Disabled') {
      38         1979 :     return
      39              :   }
      40          889 :   if (workspaceState.focusMode) {
      41          378 :     app.ui.menuContainer.style.display = 'none'
      42              :   } else {
      43          384 :     app.ui.menuContainer.style.display = 'block'
      44              :   }
      45              : })
      46              : </script>
        

Generated by: LCOV version 2.0-1