[htdocs] Show message in admin web interface if forked-daapd is missing

a Spotify web API scope
This commit is contained in:
chme
2019-08-03 12:57:14 +02:00
parent a87059265d
commit 9ba1e24b6c
2 changed files with 10 additions and 0 deletions

View File

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