GUAC-605: Restore connection name handling.

This commit is contained in:
Michael Jumper
2014-11-14 21:44:32 -08:00
parent 9fcd7af361
commit 5581fcc382
3 changed files with 7 additions and 9 deletions

View File

@@ -99,19 +99,19 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams',
$scope.connectionParameters = $routeParams.params || '';
// Pull connection name from server
switch ($scope.type) {
switch ($routeParams.type) {
// Connection
case 'c':
connectionDAO.getConnection($scope.id).success(function (connection) {
$scope.page.title = connection.name;
connectionDAO.getConnection($routeParams.id).success(function (connection) {
$scope.connectionName = $scope.page.title = connection.name;
});
break;
// Connection group
case 'g':
connectionGroupDAO.getConnectionGroup($scope.id).success(function (group) {
$scope.page.title = group.name;
connectionGroupDAO.getConnectionGroup($routeParams.id).success(function (group) {
$scope.connectionName = $scope.page.title = group.name;
});
break;

View File

@@ -35,7 +35,6 @@ angular.module('client').directive('guacClient', [function guacClient() {
// Parameters for initially connecting
id : '=',
connectionName : '=',
connectionParameters : '='
},
templateUrl: 'app/client/templates/guacClient.html',

View File

@@ -26,7 +26,6 @@
<guac-client
client-properties="clientProperties"
id="id"
connection-name="connectionName"
connection-parameters="connectionParameters"
></guac-client>