From a6fbe1f6e90a54780bfe5ee53e0e0321a957147e Mon Sep 17 00:00:00 2001 From: pantsel Date: Sun, 10 Jun 2018 15:28:46 +0300 Subject: [PATCH] More intuitive connections UI --- assets/js/app/connections/00_connections.js | 2 +- assets/js/app/connections/index.html | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/assets/js/app/connections/00_connections.js b/assets/js/app/connections/00_connections.js index fefd9f24f..655b3bfce 100644 --- a/assets/js/app/connections/00_connections.js +++ b/assets/js/app/connections/00_connections.js @@ -17,7 +17,7 @@ data : { access : 0, pageName : "Connections", - pageDescription : "Create connections to Kong Nodes and select the one to use by clicking on the respective star icon.", + pageDescription : "Create connections to Kong Nodes and activate the one you want use.", prefix : '' }, views: { diff --git a/assets/js/app/connections/index.html b/assets/js/app/connections/index.html index 66d0d01a4..b384e401a 100644 --- a/assets/js/app/connections/index.html +++ b/assets/js/app/connections/index.html @@ -46,6 +46,7 @@ data-ng-class="{'mdi-chevron-down': !sort.direction, 'mdi-chevron-up': sort.direction}" > + @@ -56,10 +57,12 @@ tooltip-append-to-body="true" uib-tooltip="Toggle active" ng-click="toggleActive(node)" - ng-class="user.node && user.node.id == node.id ? 'mdi-star text-warning' : 'mdi-star-outline'" + ng-class="user.node && user.node.id == node.id ? 'mdi-lan-connect text-success' : 'mdi-lan-disconnect'" > - + + + @@ -89,9 +92,18 @@ {{node.kong_admin_url}} - {{node.kong_version}} + {{node.kong_version === "0-10-x" ? "undefined" : node.kong_version}} {{node.createdAt | date : "MMM d, y"}} + + +