mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
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.
This commit is contained in:
@@ -111,12 +111,12 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the tab within the connection permission editor which
|
* The name of the tab within the connection permission editor which
|
||||||
* displays readable connections only.
|
* displays currently selected (readable) connections only.
|
||||||
*
|
*
|
||||||
* @constant
|
* @constant
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
var SELECTED_CONNECTIONS = 'SELECTED_CONNECTIONS';
|
var CURRENT_CONNECTIONS = 'CURRENT_CONNECTIONS';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the tab within the connection permission editor which
|
* The name of the tab within the connection permission editor which
|
||||||
@@ -134,7 +134,7 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
|
|||||||
* @type String[]
|
* @type String[]
|
||||||
*/
|
*/
|
||||||
$scope.tabs = [
|
$scope.tabs = [
|
||||||
SELECTED_CONNECTIONS,
|
CURRENT_CONNECTIONS,
|
||||||
ALL_CONNECTIONS
|
ALL_CONNECTIONS
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
|
|||||||
* root connection groups within those data sources.
|
* root connection groups within those data sources.
|
||||||
*/
|
*/
|
||||||
$scope.getRootGroups = function getRootGroups() {
|
$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
|
// Display only readable connections by default if at least one
|
||||||
// readable connection exists
|
// 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;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -303,11 +303,11 @@
|
|||||||
|
|
||||||
"INFO_READ_ONLY" : "Sorry, but this user account cannot be edited.",
|
"INFO_READ_ONLY" : "Sorry, but this user account cannot be edited.",
|
||||||
|
|
||||||
"SECTION_HEADER_ALL_CONNECTIONS" : "All Connections",
|
"SECTION_HEADER_ALL_CONNECTIONS" : "All Connections",
|
||||||
"SECTION_HEADER_CONNECTIONS" : "Connections",
|
"SECTION_HEADER_CONNECTIONS" : "Connections",
|
||||||
"SECTION_HEADER_EDIT_USER" : "Edit User",
|
"SECTION_HEADER_CURRENT_CONNECTIONS" : "Current Connections",
|
||||||
"SECTION_HEADER_PERMISSIONS" : "Permissions",
|
"SECTION_HEADER_EDIT_USER" : "Edit User",
|
||||||
"SECTION_HEADER_SELECTED_CONNECTIONS" : "Selected Connections",
|
"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?"
|
"TEXT_CONFIRM_DELETE" : "Users cannot be restored after they have been deleted. Are you sure you want to delete this user?"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user