mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-11 17:52:19 +00:00
fix: give the paused auto-reload badge the inverted treatment
Paused is an alert state; use the high-contrast (inverted) badge so it stands out, keeping the quieter secondary badge for the "off" state. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<span class="text-sm text-muted-foreground">
|
||||
{{ $t('workspacePanel.autoReload.tile.label') }}
|
||||
</span>
|
||||
<StatusBadge v-if="badge" :label="badge" severity="secondary" />
|
||||
<StatusBadge v-if="badge" :label="badge" :severity="badgeSeverity" />
|
||||
</div>
|
||||
|
||||
<p
|
||||
@@ -151,6 +151,12 @@ const badge = computed(() => {
|
||||
return ''
|
||||
})
|
||||
|
||||
// Paused is an alert state, so give it the high-contrast (inverted) pill; the
|
||||
// quieter "off" state keeps the secondary treatment.
|
||||
const badgeSeverity = computed(() =>
|
||||
isPaused.value ? 'contrast' : 'secondary'
|
||||
)
|
||||
|
||||
const reloadCreditsLabel = computed(() => fmtCredits(config.reloadCredits))
|
||||
const thresholdLabel = computed(() => fmtCredits(config.thresholdCredits))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user