mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1292: Verify existence of filesystem before refreshing.
This commit is contained in:
@@ -250,7 +250,11 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
||||
|
||||
// Refresh file browser when any upload completes
|
||||
$scope.$on('guacUploadComplete', function uploadComplete(event, filename) {
|
||||
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
|
||||
|
||||
// Refresh filesystem, if it exists
|
||||
if ($scope.filesystem)
|
||||
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
|
||||
|
||||
});
|
||||
|
||||
}]
|
||||
|
Reference in New Issue
Block a user