mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUAC-1293: Refresh file browser when file browser is shown.
This commit is contained in:
@@ -586,6 +586,16 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
return !!$scope.filesystemMenuContents && $scope.menu.shown;
|
return !!$scope.filesystemMenuContents && $scope.menu.shown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Automatically refresh display when filesystem menu is shown
|
||||||
|
$scope.$watch('isFilesystemMenuShown()', function refreshFilesystem() {
|
||||||
|
|
||||||
|
// Refresh filesystem, if defined
|
||||||
|
var filesystem = $scope.filesystemMenuContents;
|
||||||
|
if (filesystem)
|
||||||
|
ManagedFilesystem.refresh(filesystem, filesystem.currentDirectory);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the full path to the given file as an ordered array of parent
|
* Returns the full path to the given file as an ordered array of parent
|
||||||
* directories.
|
* directories.
|
||||||
|
Reference in New Issue
Block a user