GUACAMOLE-723: Sort connections in panel by last use.
This commit is contained in:
1 parent
19da6e32a2
commit
378cae57a7
3 files changed
+20
-4
No files matched your search
@@ -492,6 +492,12 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
|
||||
});
|
||||
|
||||
// Update last used timestamp when the active client changes
|
||||
$scope.$watch('client', function clientChanged(client) {
|
||||
if (client)
|
||||
client.lastUsed = new Date().getTime();
|
||||
});
|
||||
|
||||
// Update page icon when thumbnail changes
|
||||
$scope.$watch('client.thumbnail.canvas', function thumbnailChanged(canvas) {
|
||||
iconService.setIcons(canvas);
|
||||
|
||||
Reference in new issue
Block a user