From 6152eb6d6d6becb99ccc594974a800adb88b844e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 17 Oct 2016 13:35:30 +0200 Subject: [PATCH] gui: Hide "Failed Items" unless there is an actual failure (fixes #3647) Since delta indexes it's perfectly normal for us to need files that are currently unavailable due to devices being disconnected. This doesn't imply a failure, so we should not show the "Failed Items" line and corresponding eternal spinner (since it would never be filled in, since there is no failure). We still show state "Out of Sync" (correct) and the list of files we need (correct). --- gui/default/index.html | 8 ++------ test/h1/config.xml | 2 +- test/h2/config.xml | 6 +++--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index da26c93f..47c8810d 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -337,16 +337,12 @@ ~ {{scanRemaining(folder.id)}} - +  Failed Items - + {{failed[folder.id].length | alwaysNumber}} items - - - -  Folder Type diff --git a/test/h1/config.xml b/test/h1/config.xml index 9a8f4666..f221cb18 100644 --- a/test/h1/config.xml +++ b/test/h1/config.xml @@ -1,4 +1,4 @@ - + diff --git a/test/h2/config.xml b/test/h2/config.xml index 9702453f..1b79edf7 100644 --- a/test/h2/config.xml +++ b/test/h2/config.xml @@ -1,4 +1,4 @@ - + @@ -75,7 +75,7 @@ true 21027 [ff12::8384]:21027 - 0 + 10 0 5 true @@ -96,7 +96,7 @@ false 5 true - false + true 1 https://upgrades.syncthing.net/meta.json false