Skip to content

Commit

Permalink
Replace ToggleButton with Button to be consistent in style (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Aug 24, 2024
1 parent fc05029 commit 5dec868
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/components/sidebar/tabs/NodeLibrarySidebarTab.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<template>
<SidebarTabTemplate :title="$t('sideToolbar.nodeLibrary')">
<template #tool-buttons>
<ToggleButton
v-model:model-value="alphabeticalSort"
on-icon="pi pi-sort-alpha-down"
off-icon="pi pi-sort-alt"
aria-label="Sort"
:pt="{
label: { style: { display: 'none' } }
}"
<Button
:icon="alphabeticalSort ? 'pi pi-sort-alpha-down' : 'pi pi-sort-alt'"
text
severity="secondary"
@click="alphabeticalSort = !alphabeticalSort"
v-tooltip="$t('sideToolbar.nodeLibraryTab.sortOrder')"
>
</ToggleButton>
/>
</template>
<template #body>
<SearchBox
Expand Down Expand Up @@ -79,7 +75,7 @@
<script setup lang="ts">
import Badge from 'primevue/badge'
import ToggleButton from 'primevue/togglebutton'
import Button from 'primevue/button'
import {
buildNodeDefTree,
ComfyNodeDefImpl,
Expand Down

0 comments on commit 5dec868

Please sign in to comment.