mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Merge remote-tracking branch 'upstream/master'
Conflicts: auto/gui.files.go
This commit is contained in:
commit
63c0f11458
File diff suppressed because one or more lines are too long
@ -234,6 +234,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.nodeName = function (nodeCfg) {
|
$scope.nodeName = function (nodeCfg) {
|
||||||
|
if (typeof nodeCfg === 'undefined') {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
if (nodeCfg.Name) {
|
if (nodeCfg.Name) {
|
||||||
return nodeCfg.Name;
|
return nodeCfg.Name;
|
||||||
}
|
}
|
||||||
@ -314,7 +317,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
|
|||||||
});
|
});
|
||||||
$scope.config.Nodes = $scope.nodes;
|
$scope.config.Nodes = $scope.nodes;
|
||||||
|
|
||||||
for (var id in repos) {
|
for (var id in $scope.repos) {
|
||||||
$scope.repos[id].Nodes = $scope.repos[id].Nodes.filter(function (n) {
|
$scope.repos[id].Nodes = $scope.repos[id].Nodes.filter(function (n) {
|
||||||
return n.NodeID !== $scope.currentNode.NodeID;
|
return n.NodeID !== $scope.currentNode.NodeID;
|
||||||
});
|
});
|
||||||
|
@ -389,7 +389,7 @@
|
|||||||
<div class="well well-sm text-monospace text-center">
|
<div class="well well-sm text-monospace text-center">
|
||||||
{{myID | chunkID}}
|
{{myID | chunkID}}
|
||||||
</div>
|
</div>
|
||||||
<img class="center-block img-thumbnail" src="qr/{{myID | chunkID}}"/>
|
<img ng-if="myID" class="center-block img-thumbnail" src="qr/{{myID | chunkID}}"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Close</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Close</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user