mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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);
|
||||
};
|
||||
|
@@ -265,6 +265,9 @@
|
||||
"tunnelStates" : {
|
||||
"closed" : "You have been disconnected. Reload the page to reconnect."
|
||||
}
|
||||
},
|
||||
"action" : {
|
||||
"reconnect" : "Reconnect"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user