mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[web] Remove useless getters of the store
This commit is contained in:
parent
bb43de465f
commit
3cadee1d48
@ -100,7 +100,7 @@ export default {
|
||||
}
|
||||
},
|
||||
lyrics() {
|
||||
const raw = this.$store.getters.lyrics
|
||||
const raw = this.$store.state.lyrics.content
|
||||
const parsed = []
|
||||
if (raw) {
|
||||
// Parse the lyrics
|
||||
|
@ -22,7 +22,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
is_active() {
|
||||
return this.$store.getters.lyrics_pane
|
||||
return this.$store.state.lyrics.pane
|
||||
},
|
||||
icon_name() {
|
||||
return this.is_active ? 'script-text-play' : 'script-text-outline'
|
||||
|
@ -91,7 +91,7 @@ export default {
|
||||
},
|
||||
|
||||
lyrics_visible() {
|
||||
return this.$store.getters.lyrics_pane
|
||||
return this.$store.state.lyrics.pane
|
||||
},
|
||||
|
||||
player() {
|
||||
|
@ -70,10 +70,6 @@ export default createStore({
|
||||
},
|
||||
|
||||
getters: {
|
||||
lyrics: (state) => state.lyrics.content,
|
||||
|
||||
lyrics_pane: (state) => state.lyrics.pane,
|
||||
|
||||
now_playing: (state) => {
|
||||
const item = state.queue.items.find((e) => e.id === state.player.item_id)
|
||||
return item === undefined ? {} : item
|
||||
|
Loading…
Reference in New Issue
Block a user