fix: logout removing client mode; fix: nickname not showing after app login
This commit is contained in:
parent
0be64f1477
commit
db1a0a5ec3
File diff suppressed because one or more lines are too long
@ -680,7 +680,6 @@ export default {
|
|||||||
previewVolume: window.vol,
|
previewVolume: window.vol,
|
||||||
accountNum: 0,
|
accountNum: 0,
|
||||||
accounts: []
|
accounts: []
|
||||||
// clientMode: window.clientMode
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -823,6 +822,11 @@ export default {
|
|||||||
this.lastCredentials = JSON.parse(JSON.stringify(credentials))
|
this.lastCredentials = JSON.parse(JSON.stringify(credentials))
|
||||||
this.spotifyFeatures = JSON.parse(JSON.stringify(credentials))
|
this.spotifyFeatures = JSON.parse(JSON.stringify(credentials))
|
||||||
},
|
},
|
||||||
|
loggedInViaDeezer(arl) {
|
||||||
|
this.dispatchARL({ arl })
|
||||||
|
socket.emit('login', arl, true, this.accountNum)
|
||||||
|
// this.login()
|
||||||
|
},
|
||||||
login() {
|
login() {
|
||||||
let newArl = this.$refs.loginInput.value.trim()
|
let newArl = this.$refs.loginInput.value.trim()
|
||||||
|
|
||||||
@ -833,10 +837,6 @@ export default {
|
|||||||
appLogin(e) {
|
appLogin(e) {
|
||||||
socket.emit('applogin')
|
socket.emit('applogin')
|
||||||
},
|
},
|
||||||
loggedInViaDeezer(arl) {
|
|
||||||
this.dispatchARL({ arl })
|
|
||||||
this.login()
|
|
||||||
},
|
|
||||||
changeAccount() {
|
changeAccount() {
|
||||||
socket.emit('changeAccount', this.accountNum)
|
socket.emit('changeAccount', this.accountNum)
|
||||||
},
|
},
|
||||||
|
@ -72,7 +72,9 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
RESET_LOGIN(state) {
|
RESET_LOGIN(state) {
|
||||||
// Needed for reactivity
|
// Needed for reactivity
|
||||||
|
let clientMode = state.clientMode
|
||||||
Object.assign(state, getDefaultState())
|
Object.assign(state, getDefaultState())
|
||||||
|
state.clientMode = clientMode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ export async function adjustVolume(element, newVolume, { duration = 1000, easing
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
element.volume = originalVolume + easing(tick / ticks) * delta
|
element.volume = originalVolume + easing(tick / ticks) * delta
|
||||||
// console.log(element.volume)
|
|
||||||
if (++tick === ticks) {
|
if (++tick === ticks) {
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
resolve()
|
resolve()
|
||||||
|
Loading…
Reference in New Issue
Block a user