From ee92ee019019efbb7d739758d3546e4ce6772f1f Mon Sep 17 00:00:00 2001 From: Sacheendra Talluri Date: Mon, 20 Mar 2017 13:55:08 +0000 Subject: [PATCH] gui: Move discovery failures to modal (fixes #2344) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4048 LGTM: calmh, AudriusButkevicius --- gui/default/assets/lang/lang-en.json | 2 ++ gui/default/index.html | 5 +++-- .../core/discoveryFailuresModalView.html | 21 +++++++++++++++++++ .../syncthing/core/syncthingController.js | 4 ++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 gui/default/syncthing/core/discoveryFailuresModalView.html diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index 46795ca55..65136ad8f 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -52,6 +52,7 @@ "Disconnected": "Disconnected", "Discovered": "Discovered", "Discovery": "Discovery", + "Discovery Failures": "Discovery Failures", "Documentation": "Documentation", "Download Rate": "Download Rate", "Downloaded": "Downloaded", @@ -67,6 +68,7 @@ "Error": "Error", "External File Versioning": "External File Versioning", "Failed Items": "Failed Items", + "Failure to connect to IPv6 servers is expected if there is no IPv6 connectivity.": "Failure to connect to IPv6 servers is expected if there is no IPv6 connectivity.", "File Pull Order": "File Pull Order", "File Versioning": "File Versioning", "File permission bits are ignored when looking for changes. Use on FAT file systems.": "File permission bits are ignored when looking for changes. Use on FAT file systems.", diff --git a/gui/default/index.html b/gui/default/index.html index 6d1f6c803..d9ab71fac 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -511,8 +511,8 @@ {{discoveryTotal}}/{{discoveryTotal}} - - {{discoveryTotal-discoveryFailed.length}}/{{discoveryTotal}} + + {{discoveryTotal-discoveryFailed.length}}/{{discoveryTotal}} @@ -680,6 +680,7 @@ + diff --git a/gui/default/syncthing/core/discoveryFailuresModalView.html b/gui/default/syncthing/core/discoveryFailuresModalView.html new file mode 100644 index 000000000..fee92b90d --- /dev/null +++ b/gui/default/syncthing/core/discoveryFailuresModalView.html @@ -0,0 +1,21 @@ + + +
+
+
+
+ Failure to connect to IPv6 servers is expected if there is no IPv6 connectivity. +
+
+
+
+ +
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 4a83a599a..4c28599c5 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -999,6 +999,10 @@ angular.module('syncthing.core') } }; + $scope.showDiscoveryFailures = function () { + $('#discovery-failures').modal(); + }; + $scope.editSettings = function () { // Make a working copy $scope.tmpOptions = angular.copy($scope.config.options);