mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -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>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</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="field is-grouped">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input class="input" type="text" placeholder="Enter verification code" v-model="verification_req.pin">
|
<input class="input" type="text" placeholder="Enter verification code" v-model="verification_req.pin">
|
||||||
@ -100,8 +100,8 @@ export default {
|
|||||||
webapi.output_toggle(outputId)
|
webapi.output_toggle(outputId)
|
||||||
},
|
},
|
||||||
|
|
||||||
kickoff_verification () {
|
kickoff_verification (outputId) {
|
||||||
webapi.verification_kickoff(this.verification_req)
|
webapi.output_update(outputId, this.verification_req)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -372,10 +372,6 @@ export default {
|
|||||||
return axios.post('/api/pairing', pairingReq)
|
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) {
|
artwork_url_append_size_params (artworkUrl, maxwidth = 600, maxheight = 600) {
|
||||||
if (artworkUrl && artworkUrl.startsWith('/')) {
|
if (artworkUrl && artworkUrl.startsWith('/')) {
|
||||||
if (artworkUrl.includes('?')) {
|
if (artworkUrl.includes('?')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user