From 53cb7cd88b77135283be767de3b395ef6add59b0 Mon Sep 17 00:00:00 2001 From: samcm Date: Mon, 17 Jul 2017 02:30:57 +1000 Subject: [PATCH] Show disconnected servers --- index.html | 3 +- src/components/application/plexbrowser.vue | 32 +++++++++++++++++++++- src/store.js | 2 +- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index fb7ec4ab..3b41168e 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,8 @@ PlexTogether - + +
diff --git a/src/components/application/plexbrowser.vue b/src/components/application/plexbrowser.vue index 4f4c129e..4ba748ea 100644 --- a/src/components/application/plexbrowser.vue +++ b/src/components/application/plexbrowser.vue @@ -66,7 +66,7 @@

Browse

- + @@ -81,6 +81,30 @@
{{server.name}}
v{{server.productVersion}}
Owned by {{ ownerOfServer(server) }}
+
Unable to connect
+ +
+
+
+
+
+ + + + + + + + +
+
{{device.name}}
+
v{{device.productVersion}}
+
Owned by {{ ownerOfServer(device) }}
+
Unable to connect
@@ -133,6 +157,12 @@ setServer (server) { this.browsingServer = server }, + isConnectable (server){ + if (this.plex.getServerById(server.clientIdentifier)){ + return true + } + return false + }, reset () { console.log('resetting') this.browsingServer = false diff --git a/src/store.js b/src/store.js index 8fe330c5..0236629f 100644 --- a/src/store.js +++ b/src/store.js @@ -61,7 +61,7 @@ if (process.env.NODE_ENV == 'development') { const state = { count: 0, appTitle: 'PlexTogether', - appVersion: '1.2.3', + appVersion: '1.2.4', background: null, shownChat: false, plex: null,