mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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).
This commit is contained in:
parent
ff0ebc196c
commit
6152eb6d6d
@ -337,16 +337,12 @@
|
|||||||
<span tooltip data-original-title="{{scanRate(folder.id) | binary}}B/s">~ {{scanRemaining(folder.id)}}</span>
|
<span tooltip data-original-title="{{scanRate(folder.id) | binary}}B/s">~ {{scanRemaining(folder.id)}}</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="folder.type != 'readonly' && (folderStatus(folder) === 'outofsync' || hasFailedFiles(folder.id))">
|
<tr ng-if="hasFailedFiles(folder.id))">
|
||||||
<th><span class="fa fa-fw fa-exclamation-circle"></span> <span translate>Failed Items</span></th>
|
<th><span class="fa fa-fw fa-exclamation-circle"></span> <span translate>Failed Items</span></th>
|
||||||
<!-- Show the number of failed items as a link to bring up the list. -->
|
<!-- Show the number of failed items as a link to bring up the list. -->
|
||||||
<td ng-if="hasFailedFiles(folder.id)" class="text-right">
|
<td class="text-right">
|
||||||
<a href="" ng-click="showFailed(folder.id)">{{failed[folder.id].length | alwaysNumber}} <span translate>items</span></a>
|
<a href="" ng-click="showFailed(folder.id)">{{failed[folder.id].length | alwaysNumber}} <span translate>items</span></a>
|
||||||
</td>
|
</td>
|
||||||
<!-- The list of failed items hasn't loaded yet; show a spinner for the time being. -->
|
|
||||||
<td ng-if="!hasFailedFiles(folder.id)" class="text-right">
|
|
||||||
<span class="fa fa-spinner fa-pulse"></span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="folder.type != 'readwrite'">
|
<tr ng-if="folder.type != 'readwrite'">
|
||||||
<th><span class="fa fa-fw fa-lock"></span> <span translate>Folder Type</span></th>
|
<th><span class="fa fa-fw fa-lock"></span> <span translate>Folder Type</span></th>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<configuration version="15">
|
<configuration version="16">
|
||||||
<folder id="default" label="" path="s1/" type="readwrite" rescanIntervalS="10" ignorePerms="false" autoNormalize="true">
|
<folder id="default" label="" path="s1/" type="readwrite" rescanIntervalS="10" ignorePerms="false" autoNormalize="true">
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<configuration version="15">
|
<configuration version="16">
|
||||||
<folder id="default" label="" path="s2/" type="readwrite" rescanIntervalS="15" ignorePerms="false" autoNormalize="true">
|
<folder id="default" label="" path="s2/" type="readwrite" rescanIntervalS="15" ignorePerms="false" autoNormalize="true">
|
||||||
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
||||||
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<localAnnounceEnabled>true</localAnnounceEnabled>
|
<localAnnounceEnabled>true</localAnnounceEnabled>
|
||||||
<localAnnouncePort>21027</localAnnouncePort>
|
<localAnnouncePort>21027</localAnnouncePort>
|
||||||
<localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
|
<localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
|
||||||
<maxSendKbps>0</maxSendKbps>
|
<maxSendKbps>10</maxSendKbps>
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
<maxRecvKbps>0</maxRecvKbps>
|
||||||
<reconnectionIntervalS>5</reconnectionIntervalS>
|
<reconnectionIntervalS>5</reconnectionIntervalS>
|
||||||
<relaysEnabled>true</relaysEnabled>
|
<relaysEnabled>true</relaysEnabled>
|
||||||
@ -96,7 +96,7 @@
|
|||||||
<cacheIgnoredFiles>false</cacheIgnoredFiles>
|
<cacheIgnoredFiles>false</cacheIgnoredFiles>
|
||||||
<progressUpdateIntervalS>5</progressUpdateIntervalS>
|
<progressUpdateIntervalS>5</progressUpdateIntervalS>
|
||||||
<symlinksEnabled>true</symlinksEnabled>
|
<symlinksEnabled>true</symlinksEnabled>
|
||||||
<limitBandwidthInLan>false</limitBandwidthInLan>
|
<limitBandwidthInLan>true</limitBandwidthInLan>
|
||||||
<minHomeDiskFreePct>1</minHomeDiskFreePct>
|
<minHomeDiskFreePct>1</minHomeDiskFreePct>
|
||||||
<releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
|
<releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
|
||||||
<overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
|
<overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
|
||||||
|
Loading…
Reference in New Issue
Block a user