[web] Prepare for the switch to Pinia

This commit is contained in:
Alain Nussbaumer
2024-02-21 14:02:47 +01:00
parent 95521c8a48
commit 5c2845784f
8 changed files with 42 additions and 61 deletions

View File

@@ -256,7 +256,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import ContentText from '@/templates/ContentText.vue'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import { GroupByList } from '@/lib/GroupByList'
@@ -372,7 +371,7 @@ export default {
this.searchMusic(route.query)
this.searchAudiobooks(route.query)
this.searchPodcasts(route.query)
this.$store.commit(types.ADD_RECENT_SEARCH, route.query.query)
this.$store.dispatch('add_recent_search', route.query.query)
},
searchMusic(query) {

View File

@@ -296,7 +296,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import ContentText from '@/templates/ContentText.vue'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import CoverArtwork from '@/components/CoverArtwork.vue'
@@ -511,7 +510,7 @@ export default {
this.search_query = this.query.query
this.search_param.limit = this.query.limit ? this.query.limit : PAGE_SIZE
this.search_param.offset = this.query.offset ? this.query.offset : 0
this.$store.commit(types.ADD_RECENT_SEARCH, this.query.query)
this.$store.dispatch('add_recent_search', this.query.query)
this.search_all()
},
search_albums_next({ loaded }) {