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:
Eric Lesiuta 2020-12-07 16:19:28 -05:00 committed by GitHub
parent c1b452df93
commit 25d904dc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1094,7 +1094,7 @@ angular.module('syncthing.core')
if (matches.length !== 1) {
return shortID;
}
return matches[0].name;
return $scope.friendlyNameFromID(matches[0]);
};
$scope.friendlyNameFromID = function (deviceID) {

View File

@ -1098,7 +1098,7 @@ angular.module('syncthing.core')
if (matches.length !== 1) {
return shortID;
}
return matches[0].name;
return $scope.friendlyNameFromID(matches[0]);
};
$scope.friendlyNameFromID = function (deviceID) {