mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 10:51:37 +00:00
reverted old changes and fixed library switching
This commit is contained in:
parent
47272d6136
commit
bd41f23438
3 changed files with 16 additions and 52 deletions
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue