This repository was archived by the owner on Dec 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 8484</template >
8585
8686<script lang="ts">
87- import { Component , mixins , Vue } from ' nuxt-property-decorator'
87+ import { Component , mixins , Vue , Watch } from ' nuxt-property-decorator'
8888import { NftEntity as GraphNFT } from ' @/components/rmrk/service/types'
8989import {
9090 getCloudflareImageLinks ,
@@ -105,6 +105,7 @@ import PrefixMixin from '~/utils/mixins/prefixMixin'
105105import { NFTMetadata } from ' ../service/scheme'
106106import { getSanitizer } from ' ../utils'
107107import { SearchQuery } from ' ./Search/types'
108+ import shouldUpdate from ' ~/utils/shouldUpdate'
108109
109110type GraphResponse = NFTEntitiesWithCount <GraphNFT >
110111
@@ -279,6 +280,13 @@ export default class Gallery extends mixins(PrefixMixin) {
279280 return params
280281 }
281282
283+ @Watch (' $route.query.search' )
284+ protected onIdChange(val : string , oldVal : string ) {
285+ if (shouldUpdate (val , oldVal )) {
286+ this .searchQuery .search = val || ' '
287+ }
288+ }
289+
282290 get results() {
283291 // if (this.searchQuery) {
284292 // return basicAggQuery(expandedFilter(this.searchQuery, this.nfts))
You can’t perform that action at this time.
0 commit comments