Squelch interpolation errors at startup
This commit is contained in:
parent
51bf15728a
commit
8bba82a08d
@ -233,6 +233,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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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…
x
Reference in New Issue
Block a user