Reinstate 'Shared With' until a better alternative emerges (ref #1054)
This commit is contained in:
@@ -148,6 +148,10 @@
|
|||||||
<th><span class="glyphicon glyphicon-refresh"></span> <span translate>Rescan Interval</span></th>
|
<th><span class="glyphicon glyphicon-refresh"></span> <span translate>Rescan Interval</span></th>
|
||||||
<td class="text-right">{{folder.RescanIntervalS}} s</td>
|
<td class="text-right">{{folder.RescanIntervalS}} s</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><span class="glyphicon glyphicon-share-alt"></span> <span translate>Shared With</span></th>
|
||||||
|
<td class="text-right">{{sharesFolder(folder)}}</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -870,6 +870,17 @@ angular.module('syncthing.core')
|
|||||||
$scope.saveConfig();
|
$scope.saveConfig();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.sharesFolder = function (folderCfg) {
|
||||||
|
var names = [];
|
||||||
|
folderCfg.Devices.forEach(function (device) {
|
||||||
|
if (device.DeviceID != $scope.myID) {
|
||||||
|
names.push($scope.deviceName($scope.findDevice(device.DeviceID)));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
names.sort();
|
||||||
|
return names.join(", ");
|
||||||
|
}
|
||||||
|
|
||||||
$scope.deviceFolders = function (deviceCfg) {
|
$scope.deviceFolders = function (deviceCfg) {
|
||||||
var folders = [];
|
var folders = [];
|
||||||
for (var folderID in $scope.folders) {
|
for (var folderID in $scope.folders) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user