diff --git a/web-src/src/pages/PageSettingsOnlineServices.vue b/web-src/src/pages/PageSettingsOnlineServices.vue index 49603a35..3ffcdf38 100644 --- a/web-src/src/pages/PageSettingsOnlineServices.vue +++ b/web-src/src/pages/PageSettingsOnlineServices.vue @@ -137,12 +137,6 @@ export default { name: 'PageSettingsOnlineServices', components: { ContentWithHeading, TabsSettings }, - filters: { - join(array) { - return array.join(', ') - } - }, - data() { return { lastfm_login: { @@ -157,18 +151,9 @@ export default { lastfm() { return this.$store.state.lastfm }, - spotify() { return this.$store.state.spotify }, - - spotify_required_scope() { - if (this.spotify.webapi_required_scope) { - return this.spotify.webapi_required_scope.split(' ') - } - return [] - }, - spotify_missing_scope() { if ( this.spotify.webapi_token_valid && @@ -182,6 +167,12 @@ export default { ) } return [] + }, + spotify_required_scope() { + if (this.spotify.webapi_required_scope) { + return this.spotify.webapi_required_scope.split(' ') + } + return [] } }, @@ -189,7 +180,6 @@ export default { logout_spotify() { webapi.spotify_logout() }, - login_lastfm() { webapi.lastfm_login(this.lastfm_login).then((response) => { this.lastfm_login.user = '' @@ -205,7 +195,6 @@ export default { } }) }, - logoutLastfm() { webapi.lastfm_logout() } diff --git a/web-src/src/pages/PageSettingsRemotesOutputs.vue b/web-src/src/pages/PageSettingsRemotesOutputs.vue index 76da298c..aa5eee95 100644 --- a/web-src/src/pages/PageSettingsRemotesOutputs.vue +++ b/web-src/src/pages/PageSettingsRemotesOutputs.vue @@ -101,8 +101,6 @@ export default { name: 'PageSettingsRemotesOutputs', components: { ContentWithHeading, TabsSettings }, - filters: {}, - data() { return { pairing_req: { pin: '' }, @@ -111,12 +109,11 @@ export default { }, computed: { - pairing() { - return this.$store.state.pairing - }, - outputs() { return this.$store.state.outputs + }, + pairing() { + return this.$store.state.pairing } }, @@ -124,13 +121,11 @@ export default { kickoff_pairing() { webapi.pairing_kickoff(this.pairing_req) }, - - output_toggle(outputId) { - webapi.output_toggle(outputId) - }, - kickoff_verification(outputId) { webapi.output_update(outputId, this.verification_req) + }, + output_toggle(outputId) { + webapi.output_toggle(outputId) } } }