GUAC-897 Fixed cg vs g confusion for connection group type identifier in javascript and templates.

This commit is contained in:
James Muehlner
2014-11-18 22:19:26 -08:00
parent 08d075f473
commit 2c47fbb55c
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ angular.module('home').controller('homeController', ['$scope', '$injector',
// Figure out which recent connection entries are valid
$scope.connectionsAndGroups.forEach(function findValidEntries (connectionOrGroup) {
var type = connectionOrGroup.isConnection ? "c" : "cg";
var type = connectionOrGroup.isConnection ? "c" : "g";
// Find the unique ID to index into the recent connections
var uniqueId = encodeURIComponent(

View File

@@ -35,7 +35,7 @@
<div class="caption">
<div class="icon group type" ng-click="toggleExpanded(item)" ng-class="{expanded: item.expanded, empty: !item.children.length, balancer: item.balancer && !item.children.length}"></div>
<span class="name">
<a ng-show="item.balancer" ng-href="#/client/cg/{{item.identifier}}">{{item.name}}</a>
<a ng-show="item.balancer" ng-href="#/client/g/{{item.identifier}}">{{item.name}}</a>
<span ng-show="!item.balancer">{{item.name}}</span>
</span>
</div>