Now persist/restore queue/radio/player state automatically

This commit is contained in:
Eliot Berriot 2017-12-24 22:48:29 +01:00
parent ac13657863
commit 62a7d9091e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
13 changed files with 111 additions and 70 deletions

View file

@ -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) {