LCOV - code coverage report
Current view: top level - src/platform/workflow/sharing/components/publish - ComfyHubPublishFooter.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 2 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <template>
       2           30 :   <footer
       3              :     data-testid="publish-footer"
       4              :     class="flex items-center justify-end gap-4 border-t px-6 py-4"
       5              :   >
       6              :     <Button v-if="!isFirstStep" size="lg" @click="$emit('back')">
       7              :       {{ $t('comfyHubPublish.back') }}
       8              :     </Button>
       9              :     <Button
      10              :       v-if="!isLastStep"
      11              :       variant="primary"
      12              :       size="lg"
      13              :       @click="$emit('next')"
      14              :     >
      15              :       {{ $t('comfyHubPublish.next') }}
      16              :       <i class="icon-[lucide--chevron-right]" />
      17              :     </Button>
      18              :     <Button
      19              :       v-else
      20              :       variant="primary"
      21              :       size="lg"
      22              :       :disabled="isPublishDisabled || isPublishing"
      23              :       :loading="isPublishing"
      24              :       @click="$emit('publish')"
      25              :     >
      26              :       <i
      27              :         :class="
      28              :           isUpdate ? 'icon-[lucide--refresh-cw]' : 'icon-[lucide--upload]'
      29              :         "
      30              :       />
      31              :       {{
      32              :         isUpdate
      33              :           ? $t('comfyHubPublish.updateButton')
      34              :           : $t('comfyHubPublish.publishButton')
      35              :       }}
      36              :     </Button>
      37              :   </footer>
      38              : </template>
      39              : 
      40              : <script setup lang="ts">
      41              : import Button from '@comfyorg/design-system/button/Button'
      42              : 
      43              : defineProps<{
      44              :   isFirstStep: boolean
      45              :   isLastStep: boolean
      46              :   isPublishDisabled?: boolean
      47              :   isPublishing?: boolean
      48              :   isUpdate?: boolean
      49              : }>()
      50              : 
      51              : defineEmits<{
      52              :   back: []
      53              :   next: []
      54              :   publish: []
      55              : }>()
      56              : </script>
        

Generated by: LCOV version 2.0-1