diff --git a/src/components/panelLeft.vue b/src/components/panelLeft.vue
index c31e96df..edc9d0c3 100644
--- a/src/components/panelLeft.vue
+++ b/src/components/panelLeft.vue
@@ -4,7 +4,7 @@
- settings_ethernet
+ thumbs_up_down
gamepad
diff --git a/src/components/panelRight.vue b/src/components/panelRight.vue
index 410bb52c..218cf796 100644
--- a/src/components/panelRight.vue
+++ b/src/components/panelRight.vue
@@ -1,7 +1,7 @@
-
+
- Connect
- Live
- Gallery
@@ -56,6 +56,17 @@ export default {
}
});
+ // Create a global event to switch the active tab
+ var switcherObj = UIkit.tab('#tabContainer')
+ console.log(switcherObj)
+ this.$root.$on('globalTogglePanelRightTab', (state) => {
+ console.log(`Toggling panelRight tab to ${state}`)
+ switcherObj.show(1)
+ })
+
+ },
+
+ methods: {
}
}
diff --git a/src/components/viewComponents/connectDisplay.vue b/src/components/viewComponents/connectDisplay.vue
index 55c89874..a4403f8c 100644
--- a/src/components/viewComponents/connectDisplay.vue
+++ b/src/components/viewComponents/connectDisplay.vue
@@ -65,7 +65,7 @@
:name="host.name"
:hostname="host.hostname"
:port="host.port"
- v-on:connect="connectToHost(host)"
+ v-on:connect="handleConnectButton(host)"
v-on:delete="delSavedHost(host)"
>
@@ -87,7 +87,7 @@
:hostname="host.hostname"
:port="host.port"
:deletable="false"
- v-on:connect="connectToHost(host)"
+ v-on:connect="handleConnectButton(host)"
>
@@ -196,7 +196,10 @@ export default {
this.$store.dispatch('firstConnect')
.then (() => {
console.log("Connected!")
+ // Check client and server match
this.checkServerVersion()
+ // Switch to live view tab
+ this.$root.$emit('globalTogglePanelRightTab', 'preview')
})
.catch(error => {
this.modalError(error) // Let mixin handle error
@@ -226,6 +229,11 @@ export default {
this.connectToHost(selectedHost)
},
+ handleConnectButton: function(host) {
+ this.computedLocalMode = false
+ this.connectToHost(host)
+ },
+
checkServerVersion: function () {
this.$store.dispatch('updateState')
.then (() => {
diff --git a/src/components/viewComponents/galleryComponents/captureCard.vue b/src/components/viewComponents/galleryComponents/captureCard.vue
index 041d1fc5..cacb0680 100644
--- a/src/components/viewComponents/galleryComponents/captureCard.vue
+++ b/src/components/viewComponents/galleryComponents/captureCard.vue
@@ -29,9 +29,10 @@