GUACAMOLE-823: Render empty balancing connection groups on home screen as if they are connections.

This commit is contained in:
Michael Jumper
2020-06-18 01:20:43 -07:00
parent 917da570b0
commit 7db03ba9cb
2 changed files with 14 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
<script type="text/ng-template" id="nestedItem.html"> <script type="text/ng-template" id="nestedItem.html">
<div class="{{item.type}}" ng-if="isVisible(item.type)" <div class="{{item.type}}" ng-if="isVisible(item.type)"
ng-class="{ ng-class="{
balancer : item.balancing,
expanded : item.expanded, expanded : item.expanded,
expandable : item.expandable, expandable : item.expandable,
empty : !item.children.length empty : !item.children.length

View File

@@ -51,11 +51,11 @@ div.recent-connections div.connection {
overflow: hidden; overflow: hidden;
} }
a.home-connection { a.home-connection, .empty.balancer a.home-connection-group {
display: block; display: block;
} }
/* Show only expand/collapse icon for connection groups on home screen */ /* Show only expand/collapse icon for connection groups on home screen ... */
.all-connections .connection-group > .caption .icon { .all-connections .connection-group > .caption .icon {
display: none; display: none;
@@ -64,3 +64,14 @@ a.home-connection {
.all-connections .connection-group > .caption .icon.expand { .all-connections .connection-group > .caption .icon.expand {
display: inline-block; display: inline-block;
} }
/* ... except for empty balancing groups, which should be rendered as if they
* are connections. */
.all-connections .connection-group.empty.balancer > .caption .icon {
display: inline-block;
}
.all-connections .connection-group.empty.balancer > .caption .icon.expand {
display: none;
}