Pārlūkot izejas kodu

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
Jakob Borg 8 gadi atpakaļ
vecāks
revīzija
4db662e576
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      gui/default/syncthing/core/syncthingController.js

+ 3 - 0
gui/default/syncthing/core/syncthingController.js

@@ -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;
             });