Fix breadcrumbs

This commit is contained in:
Johannes Zellner
2022-09-29 18:54:10 +02:00
parent 1e94207ea4
commit ade77bd8be
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -78,6 +78,8 @@ function FileTreeController($scope, $translate, $timeout, Client) {
$scope.busy = true;
$scope.cwdParts = path.split('/').filter(function (p) { return !!p; }).map(function (p, i) { return { name: decodeURIComponent(p), path: path.split('/').slice(0, i+1).join('/') }; });
// nothing changes here, mostly triggered when editor is closed
if ($scope.cwd === path) {
$scope.busy = false;
@@ -92,8 +94,6 @@ function FileTreeController($scope, $translate, $timeout, Client) {
$scope.cwd = path;
$scope.selected = [];
$scope.cwdParts = path.split('/').filter(function (p) { return !!p; }).map(function (p, i) { return { name: decodeURIComponent(p), path: path.split('/').slice(0, i+1).join('/') }; });
// refresh will set busy to false once done
$scope.refresh();
} else if (entry.isFile) {