reverted old changes and fixed library switching

This commit is contained in:
Vito0912 2025-01-03 10:20:16 +01:00
parent 47272d6136
commit bd41f23438
No known key found for this signature in database
GPG key ID: 29A3D509FE70B237
3 changed files with 16 additions and 52 deletions

View file

@ -87,12 +87,6 @@
<ui-context-menu-dropdown v-if="contextMenuItems.length" :items="contextMenuItems" :menu-width="110" class="ml-2" @action="contextMenuAction" />
</template>
<!-- library stats page -->
<template v-else-if="isLibraryStatsPage">
<div class="flex-grow" />
<ui-btn color="primary" small @click="updateLibraryStats">
{{ this.showAllLibraryStats ? currentLibraryName : $strings.LabelShowAll }}</ui-btn>
</template>
<!-- search page -->
<template v-else-if="page === 'search'">
<div class="flex-grow" />
@ -269,9 +263,6 @@ export default {
isPlaylistsPage() {
return this.page === 'playlists'
},
isLibraryStatsPage() {
return this.page === 'library-stats'
},
isHomePage() {
return this.$route.name === 'library-library'
},
@ -619,12 +610,6 @@ export default {
updateAuthorSort() {
this.saveSettings()
},
updateLibraryStats() {
this.$emit('library-stats-updated', !this.showAllLibraryStats)
this.$nextTick(() => {
this.showAllLibraryStats = !this.showAllLibraryStats
})
},
saveSettings() {
this.$store.dispatch('user/updateUserSettings', this.settings)
},