SOLR-15637: Set .tls for security UI based on data.security.tls in response from server (#2580) (#2581)
diff --git a/solr/webapp/web/js/angular/controllers/security.js b/solr/webapp/web/js/angular/controllers/security.js
index aa7ecd9..4a72e5c 100644
--- a/solr/webapp/web/js/angular/controllers/security.js
+++ b/solr/webapp/web/js/angular/controllers/security.js
@@ -169,6 +169,7 @@
$scope.refresh = function () {
$scope.hideAll();
+ $scope.tls = false;
$scope.blockUnknown = "false"; // default setting
$scope.realmName = "solr";
$scope.forwardCredentials = "false";
@@ -186,6 +187,7 @@
$scope.permFilterTypes = ["", "name", "role", "path", "collection"];
System.get(function(data) {
+ $scope.tls = data.security ? data.security["tls"] : false;
$scope.authenticationPlugin = data.security ? data.security["authenticationPlugin"] : null;
$scope.authorizationPlugin = data.security ? data.security["authorizationPlugin"] : null;
$scope.myRoles = data.security ? data.security["roles"] : [];