mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
[htdocs] Show message in admin web interface if forked-daapd is missing
a Spotify web API scope
This commit is contained in:
@@ -24,6 +24,15 @@ var app = new Vue({
|
||||
this.loadLastfm();
|
||||
},
|
||||
|
||||
computed: {
|
||||
spotify_missing_scope () {
|
||||
if (this.spotify.webapi_token_valid && this.spotify.webapi_granted_scope && this.spotify.webapi_required_scope) {
|
||||
return this.spotify.webapi_required_scope.split(' ').filter(scope => this.spotify.webapi_granted_scope.indexOf(scope) < 0)
|
||||
}
|
||||
return []
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
loadConfig: function() {
|
||||
axios.get('/api/config').then(response => {
|
||||
|
||||
Reference in New Issue
Block a user