[web-src] Add a settings page to the player web interface to change web

interface specific options
This commit is contained in:
chme
2019-07-07 08:22:56 +02:00
parent 2cc310b646
commit 9ab1677f1f
7 changed files with 266 additions and 7 deletions

View File

@@ -106,6 +106,7 @@ export default {
vm.update_outputs()
vm.update_player_status()
vm.update_library_stats()
vm.update_settings()
vm.update_queue()
vm.update_spotify()
}
@@ -166,6 +167,12 @@ export default {
})
},
update_settings: function () {
webapi.settings().then(({ data }) => {
this.$store.commit(types.UPDATE_SETTINGS, data)
})
},
update_spotify: function () {
webapi.spotify().then(({ data }) => {
this.$store.commit(types.UPDATE_SPOTIFY, data)