From 78a4b309db4a02c27d47babc1a4be1416bdb4ccc Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 26 Sep 2019 16:37:29 +0100 Subject: [PATCH] Fixed reactivity of found host array --- src/components/viewComponents/connectDisplay.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/viewComponents/connectDisplay.vue b/src/components/viewComponents/connectDisplay.vue index 496ec92c..11f184cb 100644 --- a/src/components/viewComponents/connectDisplay.vue +++ b/src/components/viewComponents/connectDisplay.vue @@ -81,7 +81,7 @@
-
+
-1) { +import isElectron from '../../modules/isElectron'; +if (isElectron()) { var mdns = require('mdns-js'); } @@ -164,7 +164,7 @@ export default { } if (typeof data.port !== "undefined") { - context.foundHosts[hostData.hostname] = hostData + context.$set(context.foundHosts, hostData.hostname, hostData) } console.log(context.foundHosts) @@ -296,6 +296,9 @@ export default { }, computed: { + foundHostArray: function () { + return Object.values(this.foundHosts) + }, // Stylises the hostname input box based on connection status IpFormClasses: function () { return {