[BugFix] Properly update color button color on first selection (#2736)

This commit is contained in:
Chenlei Hu
2025-02-26 13:43:09 -05:00
committed by huchenlei
parent 4989e15a79
commit 18dee3c05d
2 changed files with 31 additions and 8 deletions

View File

@@ -6,9 +6,9 @@
content: 'p-0 flex flex-row'
}"
>
<ColorPickerButton v-if="nodeSelected || groupSelected" />
<ColorPickerButton v-show="nodeSelected || groupSelected" />
<Button
v-if="nodeSelected"
v-show="nodeSelected"
severity="secondary"
text
@click="
@@ -21,7 +21,7 @@
</template>
</Button>
<Button
v-if="nodeSelected || groupSelected"
v-show="nodeSelected || groupSelected"
severity="secondary"
text
icon="pi pi-thumbtack"
@@ -34,7 +34,7 @@
@click="() => commandStore.execute('Comfy.Canvas.DeleteSelectedItems')"
/>
<Button
v-if="isRefreshable"
v-show="isRefreshable"
severity="info"
text
icon="pi pi-refresh"