GUAC-1293: Refresh file browser when file browser is shown.
This commit is contained in:
1 parent
f019a36ccf
commit
6b27b6a877
1 file changed
+10
@@ -586,6 +586,16 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
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
|
||||
* directories.
|
||||
|
||||
Reference in new issue
Block a user