diff --git a/src/translation/en.json b/src/translation/en.json index f8e37acd9..eda48da40 100644 --- a/src/translation/en.json +++ b/src/translation/en.json @@ -358,8 +358,9 @@ "label": "Restrict Access" }, "secret": { - "label": "Secret", - "description": "All LDAP queries have to be authenticated with this secret and the user DN {{ userDN }}" + "label": "Bind Password", + "description": "All LDAP queries have to be authenticated with this secret and the user DN {{ userDN }}", + "url": "Server URL" } }, "userImportDialog": { diff --git a/src/views/users.html b/src/views/users.html index c78348e37..c1c838443 100644 --- a/src/views/users.html +++ b/src/views/users.html @@ -937,6 +937,15 @@ {{ 'users.exposedLdap.enabled' | tr }} +
+ +
+ + + + +
+

diff --git a/src/views/users.js b/src/views/users.js index 3622155df..5068902e4 100644 --- a/src/views/users.js +++ b/src/views/users.js @@ -1271,5 +1271,23 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio $timeout(function () { $('#setGhostClipboardButton').tooltip('hide'); }, 2000); }); + new Clipboard('#userDirectoryUrlClipboardButton').on('success', function(e) { + $('#userDirectoryUrlClipboardButton').tooltip({ + title: 'Copied!', + trigger: 'manual' + }).tooltip('show'); + + $timeout(function () { $('#userDirectoryUrlClipboardButton').tooltip('hide'); }, 2000); + + e.clearSelection(); + }).on('error', function(/*e*/) { + $('#userDirectoryUrlClipboardButton').tooltip({ + title: 'Press Ctrl+C to copy', + trigger: 'manual' + }).tooltip('show'); + + $timeout(function () { $('#userDirectoryUrlClipboardButton').tooltip('hide'); }, 2000); + }); + $('.modal-backdrop').remove(); }]);