mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 14:00:06 +02:00
Now persist/restore queue/radio/player state automatically
This commit is contained in:
parent
ac13657863
commit
62a7d9091e
13 changed files with 111 additions and 70 deletions
|
@ -18,6 +18,7 @@ const SEARCH_URL = config.API_URL + 'search?query={query}'
|
|||
|
||||
export default {
|
||||
mounted () {
|
||||
let self = this
|
||||
jQuery(this.$el).search({
|
||||
type: 'category',
|
||||
minCharacters: 3,
|
||||
|
@ -26,7 +27,7 @@ export default {
|
|||
},
|
||||
apiSettings: {
|
||||
beforeXHR: function (xhrObject) {
|
||||
xhrObject.setRequestHeader('Authorization', this.$store.getters['auth/header'])
|
||||
xhrObject.setRequestHeader('Authorization', self.$store.getters['auth/header'])
|
||||
return xhrObject
|
||||
},
|
||||
onResponse: function (initialResponse) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue