fix loadmore counter not resetting

- store load more counter in search store
This commit is contained in:
geoffrey45
2022-06-11 10:01:16 +03:00
parent 75123f5384
commit 191ac0bc7b
9 changed files with 47 additions and 27 deletions
+8 -4
View File
@@ -1,5 +1,5 @@
<template>
<div class="xartist" :style="{ backgroundColor: `#${color}` }">
<div class="xartist" :class="{ _is_on_sidebar: alt }">
<div
class="artist-image image border-sm"
:style="{ backgroundImage: `url('${imguri + artist.image}')` }"
@@ -11,15 +11,15 @@
</template>
<script setup lang="ts">
import { Artist } from "@/interfaces";
import { paths } from "../../config";
const imguri = paths.images.artist;
defineProps<{
artist: any;
color?: string;
artist: Artist;
alt?: boolean;
}>();
</script>
<style lang="scss">
@@ -65,4 +65,8 @@ defineProps<{
max-width: 7rem;
}
}
._is_on_sidebar {
background-color: $gray4 !important;
}
</style>