gui: Show Javascript error indicator on dev builds, remove logging of missing translations

This commit is contained in:
Lars K.W. Gohlke
2016-04-05 06:36:53 +00:00
committed by Jakob Borg
parent 181939c841
commit 492e92d65d
8 changed files with 68 additions and 54 deletions

View File

@@ -97,6 +97,7 @@ angular.module('syncthing.core')
}
$scope.version = data;
$scope.version.isDevelopmentVersion = data.version.indexOf('-')>0;
}).error($scope.emitHTTPError);
$http.get(urlbase + '/svc/report').success(function (data) {
@@ -810,7 +811,7 @@ angular.module('syncthing.core')
};
$scope.deviceName = function (deviceCfg) {
if (typeof deviceCfg === 'undefined') {
if (typeof deviceCfg === 'undefined' || typeof deviceCfg.deviceID === 'undefined') {
return "";
}
if (deviceCfg.name) {