GUAC-1099: Do not attempt to display connections in guacGroupList if no connection template is provided.

This commit is contained in:
Michael Jumper
2015-02-28 12:30:36 -08:00
parent 777e031332
commit 10133ad577
2 changed files with 10 additions and 5 deletions

View File

@@ -130,8 +130,8 @@ angular.module('groupList').directive('guacGroupList', [function guacGroupList()
if (connectionGroup) {
// Create item hierarchy
var rootItem = GroupListItem.fromConnectionGroup(connectionGroup);
// Create item hierarchy, including connections only if they will be visible
var rootItem = GroupListItem.fromConnectionGroup(connectionGroup, !!$scope.connectionTemplate);
// If root group is to be shown, wrap that group as the child of a fake root group
if ($scope.showRootGroup)