GUAC-1293: Fire events when file uploads and downloads complete.
This commit is contained in:
1 parent
a2efb47e3c
commit
03e2fe86c1
2 files changed
+6
No files matched your search
@@ -138,6 +138,9 @@ angular.module('client').factory('ManagedFileDownload', ['$rootScope', '$injecto
|
|||||||
ManagedFileTransferState.setStreamState(managedFileDownload.transferState,
|
ManagedFileTransferState.setStreamState(managedFileDownload.transferState,
|
||||||
ManagedFileTransferState.StreamState.CLOSED);
|
ManagedFileTransferState.StreamState.CLOSED);
|
||||||
|
|
||||||
|
// Notify of upload completion
|
||||||
|
$rootScope.$broadcast('guacDownloadComplete', filename);
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -211,6 +211,9 @@ angular.module('client').factory('ManagedFileUpload', ['$rootScope', '$injector'
|
|||||||
ManagedFileTransferState.setStreamState(managedFileUpload.transferState,
|
ManagedFileTransferState.setStreamState(managedFileUpload.transferState,
|
||||||
ManagedFileTransferState.StreamState.CLOSED);
|
ManagedFileTransferState.StreamState.CLOSED);
|
||||||
|
|
||||||
|
// Notify of upload completion
|
||||||
|
$rootScope.$broadcast('guacUploadComplete', file.name);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, update progress
|
// Otherwise, update progress
|
||||||
|
|||||||
Reference in new issue
Block a user