Update cast button on fullscreen player

This commit is contained in:
advplyr 2022-04-17 18:14:45 -05:00
parent c4c6377925
commit 13665af0ed
3 changed files with 16 additions and 3 deletions

View file

@ -39,11 +39,18 @@ import { AbsAudioPlayer } from '@/plugins/capacitor'
export default {
data() {
return {
onCastAvailableUpdateListener: null,
isCastAvailable: false
onCastAvailableUpdateListener: null
}
},
computed: {
isCastAvailable: {
get() {
return this.$store.state.isCastAvailable
},
set(val) {
this.$store.commit('setCastAvailable', val)
}
},
socketConnected() {
return this.$store.state.socketConnected
},