mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[web-src] Replace verification request with authorize output request
This commit is contained in:
parent
2019e88bb3
commit
ade654f96f
@ -49,7 +49,7 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<form @submit.prevent="kickoff_verification" v-if="output.needs_auth_key" class="fd-has-margin-bottom">
|
||||
<form @submit.prevent="kickoff_verification(output.id)" v-if="output.needs_auth_key" class="fd-has-margin-bottom">
|
||||
<div class="field is-grouped">
|
||||
<div class="control">
|
||||
<input class="input" type="text" placeholder="Enter verification code" v-model="verification_req.pin">
|
||||
@ -100,8 +100,8 @@ export default {
|
||||
webapi.output_toggle(outputId)
|
||||
},
|
||||
|
||||
kickoff_verification () {
|
||||
webapi.verification_kickoff(this.verification_req)
|
||||
kickoff_verification (outputId) {
|
||||
webapi.output_update(outputId, this.verification_req)
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -372,10 +372,6 @@ export default {
|
||||
return axios.post('/api/pairing', pairingReq)
|
||||
},
|
||||
|
||||
verification_kickoff (verificationReq) {
|
||||
return axios.post('/api/verification', verificationReq)
|
||||
},
|
||||
|
||||
artwork_url_append_size_params (artworkUrl, maxwidth = 600, maxheight = 600) {
|
||||
if (artworkUrl && artworkUrl.startsWith('/')) {
|
||||
if (artworkUrl.includes('?')) {
|
||||
|
Loading…
Reference in New Issue
Block a user