Fix breadcrumbs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user