GUACAMOLE-197: Add $injector to AngularJS controllers.

This commit is contained in:
Nick Couchman
2017-11-19 17:39:28 -05:00
parent f84e3b88c6
commit 45f9815eed
2 changed files with 4 additions and 4 deletions

View File

@@ -21,8 +21,8 @@
* Controller for the "GUAC_RADIUS_CHALLENGE_RESPONSE" field which
* passes the RADIUS server challenge to the user and takes the response.
*/
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element',
function radiusResponseController($scope, $element) {
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$injector',
function radiusResponseController($scope, $injector) {
// Populate the reply message field
$scope.radiusPlaceholder = $scope.field.replyMsg;

View File

@@ -22,8 +22,8 @@
* the RADIUS server state to maintain the session with the RADIUS
* server.
*/
angular.module('guacRadius').controller('radiusStateController', ['$scope', '$element',
function radiusStateController($scope, $element) {
angular.module('guacRadius').controller('radiusStateController', ['$scope', '$injector',
function radiusStateController($scope, $injector) {
// Populate the hidden field for the connection state
$scope.model = $scope.field.radiusState;