GUAC-1293: Refresh file browser when file browser is shown.

This commit is contained in:
Michael Jumper
2015-08-13 13:19:02 -07:00
parent f019a36ccf
commit 6b27b6a877

View File

@@ -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.