mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-02 04:02:20 +00:00
- Fix STL export comma operator bug (originalURL was silently discarded) - Remove redundant null checks, identical branches in CameraManager - Simplify ViewHelperManager.visibleViewHelper boolean assignment - Remove redundant inner length check in AnimationManager - Extract calculateLetterbox helper to deduplicate aspect-ratio calcs - Add explicit return types to ComfyApi public methods - Extract registerAuthHook helper in extensionService - Extract prepareConfigureData in litegraphService - Rename NeverNever to OmitNeverProps for clarity - Rename progressBarBackground.ts to useProgressBarBackground.ts - Move tooltipConfig.ts to utils/ (not a composable) - Remove restating comments and formulaic docstrings - Add missing return type to getStorageValue - Remove unnecessary runtime validation in deprecated gridUtil - Simplify updateControlWidgetLabel and ControlsManager zoom narrowing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
52 lines
1.5 KiB
Vue
52 lines
1.5 KiB
Vue
<template>
|
|
<div
|
|
class="flex h-12 items-center gap-2 border-b border-interface-stroke px-2"
|
|
>
|
|
<div class="min-w-0 flex-1 px-2 text-[14px] font-normal text-text-primary">
|
|
<span>{{ headerTitle }}</span>
|
|
</div>
|
|
<div
|
|
class="inline-flex h-6 items-center gap-2 text-[12px] leading-none text-text-primary"
|
|
>
|
|
<span :class="{ 'opacity-50': queuedCount === 0 }">{{
|
|
t('sideToolbar.queueProgressOverlay.clearQueueTooltip')
|
|
}}</span>
|
|
<Button
|
|
v-tooltip.top="clearAllJobsTooltip"
|
|
variant="destructive"
|
|
size="icon"
|
|
:aria-label="t('sideToolbar.queueProgressOverlay.clearQueued')"
|
|
:disabled="queuedCount === 0"
|
|
@click="$emit('clearQueued')"
|
|
>
|
|
<i class="icon-[lucide--list-x] size-4" />
|
|
</Button>
|
|
</div>
|
|
<JobHistoryActionsMenu @clear-history="$emit('clearHistory')" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import JobHistoryActionsMenu from '@/components/queue/JobHistoryActionsMenu.vue'
|
|
import Button from '@/components/ui/button/Button.vue'
|
|
import { buildTooltipConfig } from '@/utils/tooltipConfig'
|
|
|
|
defineProps<{
|
|
headerTitle: string
|
|
queuedCount: number
|
|
}>()
|
|
|
|
defineEmits<{
|
|
(e: 'clearHistory'): void
|
|
(e: 'clearQueued'): void
|
|
}>()
|
|
|
|
const { t } = useI18n()
|
|
const clearAllJobsTooltip = computed(() =>
|
|
buildTooltipConfig(t('sideToolbar.queueProgressOverlay.clearAllJobsTooltip'))
|
|
)
|
|
</script>
|