mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
This commit is contained in:
parent
1ea98a16b1
commit
d6b4873eed
@ -405,7 +405,7 @@
|
|||||||
<tr ng-if="folder.type == 'receiveonly' && canRevert(folder.id)">
|
<tr ng-if="folder.type == 'receiveonly' && canRevert(folder.id)">
|
||||||
<th><span class="fas fa-fw fa-exclamation-circle"></span> <span translate>Locally Changed Items</span></th>
|
<th><span class="fas fa-fw fa-exclamation-circle"></span> <span translate>Locally Changed Items</span></th>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<a href="" ng-click="showLocalChanged(folder.id)">{{model[folder.id].receiveOnlyTotalItems | alwaysNumber | localeNumber}} <span translate>items</span>, ~{{model[folder.id].receiveOnlyBytes | binary}}B</a>
|
<a href="" ng-click="showLocalChanged(folder.id)">{{model[folder.id].receiveOnlyTotalItems | alwaysNumber | localeNumber}} <span translate>items</span>, ~{{model[folder.id].receiveOnlyChangedBytes | binary}}B</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="folder.type != 'sendreceive'">
|
<tr ng-if="folder.type != 'sendreceive'">
|
||||||
|
@ -109,6 +109,12 @@ func (c *folderSummaryService) Summary(folder string) (map[string]interface{}, e
|
|||||||
|
|
||||||
res["localFiles"], res["localDirectories"], res["localSymlinks"], res["localDeleted"], res["localBytes"], res["localTotalItems"] = local.Files, local.Directories, local.Symlinks, local.Deleted, local.Bytes, local.TotalItems()
|
res["localFiles"], res["localDirectories"], res["localSymlinks"], res["localDeleted"], res["localBytes"], res["localTotalItems"] = local.Files, local.Directories, local.Symlinks, local.Deleted, local.Bytes, local.TotalItems()
|
||||||
|
|
||||||
|
fcfg, haveFcfg := c.cfg.Folder(folder)
|
||||||
|
|
||||||
|
if haveFcfg && fcfg.IgnoreDelete {
|
||||||
|
need.Deleted = 0
|
||||||
|
}
|
||||||
|
|
||||||
need.Bytes -= c.model.FolderProgressBytesCompleted(folder)
|
need.Bytes -= c.model.FolderProgressBytesCompleted(folder)
|
||||||
// This may happen if we are in progress of pulling files that were
|
// This may happen if we are in progress of pulling files that were
|
||||||
// deleted globally after the pull started.
|
// deleted globally after the pull started.
|
||||||
@ -117,13 +123,7 @@ func (c *folderSummaryService) Summary(folder string) (map[string]interface{}, e
|
|||||||
}
|
}
|
||||||
res["needFiles"], res["needDirectories"], res["needSymlinks"], res["needDeletes"], res["needBytes"], res["needTotalItems"] = need.Files, need.Directories, need.Symlinks, need.Deleted, need.Bytes, need.TotalItems()
|
res["needFiles"], res["needDirectories"], res["needSymlinks"], res["needDeletes"], res["needBytes"], res["needTotalItems"] = need.Files, need.Directories, need.Symlinks, need.Deleted, need.Bytes, need.TotalItems()
|
||||||
|
|
||||||
fcfg, ok := c.cfg.Folder(folder)
|
if haveFcfg && fcfg.Type == config.FolderTypeReceiveOnly {
|
||||||
|
|
||||||
if ok && fcfg.IgnoreDelete {
|
|
||||||
res["needDeletes"] = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if ok && fcfg.Type == config.FolderTypeReceiveOnly {
|
|
||||||
// Add statistics for things that have changed locally in a receive
|
// Add statistics for things that have changed locally in a receive
|
||||||
// only folder.
|
// only folder.
|
||||||
res["receiveOnlyChangedFiles"] = ro.Files
|
res["receiveOnlyChangedFiles"] = ro.Files
|
||||||
|
Loading…
Reference in New Issue
Block a user