GUACAMOLE-220: Rename "Selected Connections" to "Current Connections" for 
clarity.

"Selected Connections" vs. "All Connections" gives the impression that the tab 
controls how permissions are used, with "All Connections" being a mode where 
all connections are readable regardless of which are explicitly selected.


Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/055219bc
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/055219bc
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/055219bc

Branch: refs/heads/staging/1.0.0
Commit: 055219bc6ce776c0affc45e10b13f6e53abc4434
Parents: e03251f
Author: Michael Jumper <mjum...@apache.org>
Authored: Sat Jul 21 14:02:57 2018 -0700
Committer: Michael Jumper <mjum...@apache.org>
Committed: Sat Jul 21 14:24:28 2018 -0700

----------------------------------------------------------------------
 .../app/manage/directives/connectionPermissionEditor.js   | 10 +++++-----
 guacamole/src/main/webapp/translations/en.json            | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/055219bc/guacamole/src/main/webapp/app/manage/directives/connectionPermissionEditor.js
----------------------------------------------------------------------
diff --git 
a/guacamole/src/main/webapp/app/manage/directives/connectionPermissionEditor.js 
b/guacamole/src/main/webapp/app/manage/directives/connectionPermissionEditor.js
index 8f1bec1..f47670a 100644
--- 
a/guacamole/src/main/webapp/app/manage/directives/connectionPermissionEditor.js
+++ 
b/guacamole/src/main/webapp/app/manage/directives/connectionPermissionEditor.js
@@ -111,12 +111,12 @@ 
angular.module('manage').directive('connectionPermissionEditor', ['$injector',
 
         /**
          * The name of the tab within the connection permission editor which
-         * displays readable connections only.
+         * displays currently selected (readable) connections only.
          *
          * @constant
          * @type String
          */
-        var SELECTED_CONNECTIONS = 'SELECTED_CONNECTIONS';
+        var CURRENT_CONNECTIONS = 'CURRENT_CONNECTIONS';
 
         /**
          * The name of the tab within the connection permission editor which
@@ -134,7 +134,7 @@ 
angular.module('manage').directive('connectionPermissionEditor', ['$injector',
          * @type String[]
          */
         $scope.tabs = [
-            SELECTED_CONNECTIONS,
+            CURRENT_CONNECTIONS,
             ALL_CONNECTIONS
         ];
 
@@ -174,7 +174,7 @@ 
angular.module('manage').directive('connectionPermissionEditor', ['$injector',
          *     root connection groups within those data sources.
          */
         $scope.getRootGroups = function getRootGroups() {
-            return $scope.currentTab === SELECTED_CONNECTIONS ? 
readableRootGroups : allRootGroups;
+            return $scope.currentTab === CURRENT_CONNECTIONS ? 
readableRootGroups : allRootGroups;
         };
 
         /**
@@ -344,7 +344,7 @@ 
angular.module('manage').directive('connectionPermissionEditor', ['$injector',
 
                 // Display only readable connections by default if at least one
                 // readable connection exists
-                $scope.currentTab = 
!!readableRootGroups[$scope.dataSource].children.length ? SELECTED_CONNECTIONS 
: ALL_CONNECTIONS;
+                $scope.currentTab = 
!!readableRootGroups[$scope.dataSource].children.length ? CURRENT_CONNECTIONS : 
ALL_CONNECTIONS;
 
             });
 

http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/055219bc/guacamole/src/main/webapp/translations/en.json
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/translations/en.json 
b/guacamole/src/main/webapp/translations/en.json
index 83e1f58..d55e262 100644
--- a/guacamole/src/main/webapp/translations/en.json
+++ b/guacamole/src/main/webapp/translations/en.json
@@ -303,11 +303,11 @@
 
         "INFO_READ_ONLY" : "Sorry, but this user account cannot be edited.",
 
-        "SECTION_HEADER_ALL_CONNECTIONS"      : "All Connections",
-        "SECTION_HEADER_CONNECTIONS"          : "Connections",
-        "SECTION_HEADER_EDIT_USER"            : "Edit User",
-        "SECTION_HEADER_PERMISSIONS"          : "Permissions",
-        "SECTION_HEADER_SELECTED_CONNECTIONS" : "Selected Connections",
+        "SECTION_HEADER_ALL_CONNECTIONS"     : "All Connections",
+        "SECTION_HEADER_CONNECTIONS"         : "Connections",
+        "SECTION_HEADER_CURRENT_CONNECTIONS" : "Current Connections",
+        "SECTION_HEADER_EDIT_USER"           : "Edit User",
+        "SECTION_HEADER_PERMISSIONS"         : "Permissions",
 
         "TEXT_CONFIRM_DELETE" : "Users cannot be restored after they have been 
deleted. Are you sure you want to delete this user?"
 

Reply via email to