diff --git a/src/components/filetree.html b/src/components/filetree.html index a9503fd4b..82b036909 100644 --- a/src/components/filetree.html +++ b/src/components/filetree.html @@ -14,7 +14,7 @@
- +
@@ -56,13 +56,13 @@
- + - + - +

{{ 'filemanager.list.empty' | tr }}
diff --git a/src/components/filetree.js b/src/components/filetree.js index 98c6b1252..4559f5ba9 100644 --- a/src/components/filetree.js +++ b/src/components/filetree.js @@ -29,6 +29,7 @@ function FileTreeController($scope, $translate, $timeout, Client) { $scope.view = this.view; $scope.busy = true; + $scope.busyRefresh = false; $scope.client = Client; $scope.cwd = null; $scope.cwdParts = []; @@ -284,6 +285,8 @@ function FileTreeController($scope, $translate, $timeout, Client) { // called from the parent $scope.onRefresh = function () { $scope.selected = []; + $scope.busy = true; + $scope.busyRefresh = true; Client.filesGet($scope.backendId, $scope.backendType, $scope.cwd, 'data', function (error, result) { if (error) return Client.error(error); @@ -292,6 +295,7 @@ function FileTreeController($scope, $translate, $timeout, Client) { amendIcons(); sort(); + $scope.busyRefresh = false; $scope.busy = false; }); };