mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
Update:Remove RSS feeds from login response payload and include feeds from library items request
This commit is contained in:
parent
8bbfee334c
commit
0e6b0d3eff
9 changed files with 36 additions and 55 deletions
|
@ -1,28 +0,0 @@
|
|||
|
||||
export const state = () => ({
|
||||
feeds: []
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
getFeedForItem: state => id => {
|
||||
return state.feeds.find(feed => feed.id === id)
|
||||
}
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
|
||||
export const mutations = {
|
||||
addFeed(state, feed) {
|
||||
var index = state.feeds.findIndex(f => f.id === feed.id)
|
||||
if (index >= 0) state.feeds.splice(index, 1, feed)
|
||||
else state.feeds.push(feed)
|
||||
},
|
||||
removeFeed(state, feed) {
|
||||
state.feeds = state.feeds.filter(f => f.id !== feed.id)
|
||||
},
|
||||
setFeeds(state, feeds) {
|
||||
state.feeds = feeds || []
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue