mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
GUAC-605: Add reconnect button and placeholder.
This commit is contained in:
@@ -209,7 +209,8 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
statusModal.activate({
|
||||
className: "error",
|
||||
title: "client.error.connectionErrorTitle",
|
||||
text: "client.error.clientErrors." + errorName
|
||||
text: "client.error.clientErrors." + errorName,
|
||||
actions: [ "client.action.reconnect" ]
|
||||
});
|
||||
|
||||
});
|
||||
@@ -243,11 +244,21 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
|
||||
statusModal.activate({
|
||||
className: "error",
|
||||
title: "client.error.connectionErrorTitle",
|
||||
text: "client.error.tunnelErrors." + errorName
|
||||
text: "client.error.tunnelErrors." + errorName,
|
||||
actions: [ "client.action.reconnect" ]
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Handle reconnect action
|
||||
$scope.$on('guacStatusAction', function actionListener(event, action) {
|
||||
|
||||
// TODO: Implement reconnect
|
||||
if (action === "client.action.reconnect")
|
||||
console.log("(Reconnect placeholder)");
|
||||
|
||||
});
|
||||
|
||||
$scope.formattedScale = function formattedScale() {
|
||||
return Math.round($scope.clientProperties.scale * 100);
|
||||
};
|
||||
|
Reference in New Issue
Block a user