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

This commit is contained in:
Michael Jumper committed 2021-07-08 03:31:49 -07:00
1 parent 6b8b57ef5a
commit 902a111a57
2 files changed
+5 -1

No files matched your search

@@ -591,7 +591,7 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
// Handle any received filesystem objects
client.onfilesystem = function fileSystemReceived(object, name) {
$rootScope.$apply(function exposeFilesystem() {
managedClient.filesystems.push(ManagedFilesystem.getInstance(object, name));
managedClient.filesystems.push(ManagedFilesystem.getInstance(managedClient, object, name));
});
};
@@ -170,6 +170,10 @@ angular.module('client').factory('ManagedFilesystem', ['$rootScope', '$injector'
* and human-readable name. Upon creation, a request to populate the
* 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
* The Guacamole.Object defining the filesystem.
*