GUACAMOLE-724: Update calls to ManagedFilesystem.getInstance() to provide relevant ManagedClient.

This commit is contained in:
Michael Jumper
2021-07-04 19:42:09 -07:00
parent 6b8b57ef5a
commit 902a111a57
2 changed files with 5 additions and 1 deletions

View File

@@ -591,7 +591,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
// Handle any received filesystem objects // Handle any received filesystem objects
client.onfilesystem = function fileSystemReceived(object, name) { client.onfilesystem = function fileSystemReceived(object, name) {
$rootScope.$apply(function exposeFilesystem() { $rootScope.$apply(function exposeFilesystem() {
managedClient.filesystems.push(ManagedFilesystem.getInstance(object, name)); managedClient.filesystems.push(ManagedFilesystem.getInstance(managedClient, object, name));
}); });
}; };

View File

@@ -170,6 +170,10 @@ angular.module('client').factory('ManagedFilesystem', ['$rootScope', '$injector'
* and human-readable name. Upon creation, a request to populate the * and human-readable name. Upon creation, a request to populate the
* contents of the root directory will be automatically dispatched. * contents of the root directory will be automatically dispatched.
* *
* @param {ManagedClient} client
* The client that originally received the "filesystem" instruction
* that resulted in the creation of this ManagedFilesystem.
*
* @param {Guacamole.Object} object * @param {Guacamole.Object} object
* The Guacamole.Object defining the filesystem. * The Guacamole.Object defining the filesystem.
* *