mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[web] Remove unused functions
This commit is contained in:
parent
9964018f0e
commit
6b37de78ba
@ -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()
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user