Operator confirmed they have no existing ?image=N bookmarks to preserve, so the soft-compat read on initial mount + router.replace strip is dead weight. The modal is now purely a Pinia overlay — no URL involvement on open OR initial mount. Drops 33 lines plus the now-unused vue-router imports in both ArtistGalleryTab (entire onMounted gone) and GalleryView (just the ?image=N block; the post_id/tag_id filter handling stays).
33 lines
704 B
Vue
33 lines
704 B
Vue
<template>
|
|
<div class="fc-artist-gallery">
|
|
<MasonryGrid
|
|
:items="store.images"
|
|
:loading="store.imagesLoading"
|
|
:has-more="store.hasMoreImages"
|
|
@load-more="store.loadMoreImages(props.slug)"
|
|
@open="openImage"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { useArtistStore } from '../../stores/artist.js'
|
|
import { useModalStore } from '../../stores/modal.js'
|
|
import MasonryGrid from '../discovery/MasonryGrid.vue'
|
|
|
|
const props = defineProps({
|
|
slug: { type: String, required: true },
|
|
})
|
|
|
|
const store = useArtistStore()
|
|
const modal = useModalStore()
|
|
|
|
function openImage (id) {
|
|
modal.open(id)
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fc-artist-gallery { min-width: 0; }
|
|
</style>
|