Add refresh button to selecton toolbox (#2612)

This commit is contained in:
bymyself
2025-02-18 09:39:43 -07:00
committed by GitHub
parent 6441a86619
commit 3b3df250cd
6 changed files with 114 additions and 5 deletions

View File

@@ -18,6 +18,13 @@
icon="pi pi-trash"
@click="() => commandStore.execute('Comfy.Canvas.DeleteSelectedItems')"
/>
<Button
v-if="isRefreshable"
severity="info"
text
icon="pi pi-refresh"
@click="refreshSelected"
/>
</Panel>
</template>
@@ -25,9 +32,11 @@
import Button from 'primevue/button'
import Panel from 'primevue/panel'
import { useRefreshableSelection } from '@/composables/useRefreshableSelection'
import { useCommandStore } from '@/stores/commandStore'
const commandStore = useCommandStore()
const { isRefreshable, refreshSelected } = useRefreshableSelection()
</script>
<style scoped>