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({
|
statusModal.activate({
|
||||||
className: "error",
|
className: "error",
|
||||||
title: "client.error.connectionErrorTitle",
|
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({
|
statusModal.activate({
|
||||||
className: "error",
|
className: "error",
|
||||||
title: "client.error.connectionErrorTitle",
|
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() {
|
$scope.formattedScale = function formattedScale() {
|
||||||
return Math.round($scope.clientProperties.scale * 100);
|
return Math.round($scope.clientProperties.scale * 100);
|
||||||
};
|
};
|
||||||
|
@@ -265,6 +265,9 @@
|
|||||||
"tunnelStates" : {
|
"tunnelStates" : {
|
||||||
"closed" : "You have been disconnected. Reload the page to reconnect."
|
"closed" : "You have been disconnected. Reload the page to reconnect."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"action" : {
|
||||||
|
"reconnect" : "Reconnect"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user