GUACAMOLE-723: Sort connections in panel by last use.

This commit is contained in:
Michael Jumper
2019-04-02 09:20:45 -07:00
parent 19da6e32a2
commit 378cae57a7
3 changed files with 20 additions and 4 deletions

View File

@@ -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);