Skip to content

Commit

Permalink
Merge pull request #2175 from dandi/gui-ordering-icons
Browse files Browse the repository at this point in the history
Fix dandiset ordering icons, default to descending
  • Loading branch information
jjnesbitt authored Feb 7, 2025
2 parents 15820b0 + 212e7f5 commit 8bef62f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/components/DandisetsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
>
{{ option.name }}
<v-icon right>
<template v-if="sortDir === 1 || sortOption !== i">
mdi-sort-ascending
<template v-if="sortDir === -1 || sortOption !== i">
mdi-sort-variant
</template>
<template v-else>
mdi-sort-descending
mdi-sort-reverse-variant
</template>
</v-icon>
</v-chip>
Expand Down Expand Up @@ -204,7 +204,7 @@ export default defineComponent({
sortDir.value *= -1;
} else {
sortOption.value = index;
sortDir.value = 1;
sortDir.value = -1;
}
page.value = 1;
Expand Down

0 comments on commit 8bef62f

Please sign in to comment.