gui: Ensure failed items folder path contains separator (fixes #4143)

Windows specific, due to how we handle folder paths.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4149
This commit is contained in:
Jakob Borg 2017-05-15 06:32:16 +00:00 committed by Audrius Butkevicius
parent 1d15b8be9b
commit 4db662e576

View File

@ -1651,6 +1651,9 @@ angular.module('syncthing.core')
$scope.showFailed = function (folder) {
$scope.failedCurrent = $scope.failed[folder];
$scope.failedFolderPath = $scope.folders[folder].path;
if ($scope.failedFolderPath[$scope.failedFolderPath.length - 1] !== $scope.system.pathSeparator) {
$scope.failedFolderPath += $scope.system.pathSeparator;
}
$('#failed').modal().on('hidden.bs.modal', function () {
$scope.failedCurrent = undefined;
});