Merge remote-tracking branch 'origin/gallery-filter-sorting' into gallery-filter-sorting

This commit is contained in:
Zurdi
2024-02-06 01:50:55 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -6,13 +6,14 @@ import { useDisplay } from "vuetify";
defineProps<{ rom: EnhancedRomSchema }>();
const { xs } = useDisplay();
const galleryFilter = storeGalleryFilter();
const capitalizeString = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
</script>
<template>
<v-divider class="mx-2 my-4" />
<template v-for="filter in galleryFilter.filters">
<v-row v-if="rom[filter].length > 0" class="align-center my-3" no-gutters>
<v-col cols="3" sm="3" md="2" xl="1">
<span>{{ filter.charAt(0).toUpperCase() + filter.slice(1) }}</span>
<span>{{ capitalizeString(filter) }}</span>
</v-col>
<v-col>
<v-chip v-for="value in rom[filter]" class="my-1 mr-2" label>

View File

@@ -28,7 +28,7 @@ emitter?.on("showSearchRomDialog", (romToSearch) => {
});
// Functions
function setExtended() {
function toggleExtended() {
searchExtended.value = !searchExtended.value;
}