mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 07:27:42 +00:00
GUACAMOLE-723: Sort connections in panel by last use.
This commit is contained in:
@@ -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