We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a8914 commit 9608cbbCopy full SHA for 9608cbb
src/views/ChooseEdgeConnection.vue
@@ -88,6 +88,10 @@ import AppFrame from '@/components/AppFrame.vue'
88
import {
89
REMOVE_REMOTE_PEER_ID
90
} from '../store/action-types.js'
91
+import { mapState } from 'vuex'
92
+import {
93
+ PEER_CONNECTED
94
+} from '@/store/mutation-types'
95
96
export default {
97
data: () => {
@@ -117,11 +121,14 @@ export default {
117
121
sendEdgeAddress () {
118
122
this.$store.state.pnp.edgeRoom = this.edgeAddress
119
123
this.$store.dispatch(REMOVE_REMOTE_PEER_ID)
120
- },
- redirect () {
- console.log('Redirect!!!!!!')
124
}
125
},
126
+ computed: {
127
+ ...mapState({
128
+ isEdgeConnected: state =>
129
+ state.pnp.peerConnectionStatus === PEER_CONNECTED
130
+ })
131
+ },
132
components: {
133
AppFrame
134
0 commit comments