Fix breadcrumbs in filemanager

This commit is contained in:
Johannes Zellner
2020-11-07 22:58:37 +01:00
parent 8b67b3b884
commit 6a43e184e8

View File

@@ -337,7 +337,7 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
location.hash = path;
$scope.cwd = path;
$scope.cwdParts = path.split('/').filter(function (p) { return !!p; }).map(function (p, i) { return { name: p, path: path.split('/').slice(0, i+2).join('/') }; });
$scope.cwdParts = path.split('/').filter(function (p) { return !!p; }).map(function (p, i) { return { name: p, path: path.split('/').slice(0, i+1).join('/') }; });
$scope.refresh();
};