Skip to content

Commit

Permalink
fix(frontend): ignore case in collection search for followed
Browse files Browse the repository at this point in the history
When searching for collections, the casing will normally be ignored. The item for "Followed Projects" will be removed if using capitalized characters though. This is especially confusing since it's titled with partially capital letters.

Resolves modrinth#1370
  • Loading branch information
Erb3 committed Dec 11, 2024
1 parent 742c0ed commit 80f6547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/src/pages/dashboard/collections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
<div class="collections-grid">
<nuxt-link
v-if="'followed projects'.includes(filterQuery)"
v-if="'followed projects'.includes(filterQuery.toLowerCase())"
:to="`/collection/following`"
class="universal-card recessed collection"
>
Expand Down Expand Up @@ -94,7 +94,7 @@
</div>
</template>
<script setup>
import { BoxIcon, SearchIcon, XIcon, PlusIcon, LinkIcon, LockIcon } from "@modrinth/assets";
import { BoxIcon, LinkIcon, LockIcon, PlusIcon, SearchIcon, XIcon } from "@modrinth/assets";
import { Avatar, Button } from "@modrinth/ui";
import WorldIcon from "~/assets/images/utils/world.svg?component";
import CollectionCreateModal from "~/components/ui/CollectionCreateModal.vue";
Expand Down

0 comments on commit 80f6547

Please sign in to comment.