mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 10:00:08 +00:00
## Summary Remove the mix of class based and component style icons in favor of just [classes](https://iconify.design/docs/usage/css/tailwind/tailwind4/#basic-usage). ## Changes - **What**: Migrate existing lucide icons ## Review Focus What differs between the icons before and now? ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5947-Style-Standardize-icon-use-Part-1-2846d73d365081bfa66ceb6bdaa9ff02) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
32 lines
752 B
Vue
32 lines
752 B
Vue
<template>
|
|
<Button
|
|
v-tooltip.top="{
|
|
value: t('commands.Comfy_Canvas_ToggleSelectedNodes_Bypass.label'),
|
|
showDelay: 1000
|
|
}"
|
|
severity="secondary"
|
|
text
|
|
data-testid="bypass-button"
|
|
class="hover:dark-theme:bg-charcoal-600 hover:bg-[#E7E6E6]"
|
|
@click="toggleBypass"
|
|
>
|
|
<template #icon>
|
|
<i class="icon-[lucide--ban] w-4 h-4" />
|
|
</template>
|
|
</Button>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Button from 'primevue/button'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { useCommandStore } from '@/stores/commandStore'
|
|
|
|
const { t } = useI18n()
|
|
const commandStore = useCommandStore()
|
|
|
|
const toggleBypass = async () => {
|
|
await commandStore.execute('Comfy.Canvas.ToggleSelectedNodes.Bypass')
|
|
}
|
|
</script>
|