gui: Fix blank device name under "Recent Changes" (#7185)
fixes the device showing up as blank if the friendly name is known
This commit is contained in:
@@ -1094,7 +1094,7 @@ angular.module('syncthing.core')
|
|||||||
if (matches.length !== 1) {
|
if (matches.length !== 1) {
|
||||||
return shortID;
|
return shortID;
|
||||||
}
|
}
|
||||||
return matches[0].name;
|
return $scope.friendlyNameFromID(matches[0]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.friendlyNameFromID = function (deviceID) {
|
$scope.friendlyNameFromID = function (deviceID) {
|
||||||
|
|||||||
@@ -1098,7 +1098,7 @@ angular.module('syncthing.core')
|
|||||||
if (matches.length !== 1) {
|
if (matches.length !== 1) {
|
||||||
return shortID;
|
return shortID;
|
||||||
}
|
}
|
||||||
return matches[0].name;
|
return $scope.friendlyNameFromID(matches[0]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.friendlyNameFromID = function (deviceID) {
|
$scope.friendlyNameFromID = function (deviceID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user