@@ -57,7 +59,7 @@
@@ -88,26 +90,26 @@ export default {
data: function() {
return {
- selectedTab: 0,
+ currentTab: "connect",
unwatchStoreFunction: null
};
},
watch: {
- selectedTab: function(index) {
+ currentTab: function(index) {
// If entering the gallery
- if (index == 2) {
+ if (index == "gallery") {
console.log("Gallery tab entered");
this.$root.$emit("globalUpdateCaptureList");
}
// If entering the stream
- if (index == 1) {
- console.log("Stream tab entered");
+ if (index == "preview") {
+ console.log("Preview tab entered");
this.$root.$emit("globalTogglePreview", true);
}
// If leaving the stream
else {
- console.log("Stream tab hidden");
+ console.log("Preview tab hidden");
this.$root.$emit("globalTogglePreview", false);
}
}
@@ -122,10 +124,10 @@ export default {
ready => {
if (ready) {
console.log("Right panel now ready");
- this.selectedTab = 1;
+ this.currentTab = "preview";
} else {
console.log("Right panel now disabled");
- this.selectedTab = 0;
+ this.currentTab = "connect";
}
}
);