Only show external ldap settings when ?ldap query is passed for now

This commit is contained in:
Johannes Zellner
2019-08-30 19:01:56 +02:00
parent c809119d57
commit 9ea21606e5
2 changed files with 5 additions and 2 deletions

View File

@@ -461,11 +461,11 @@
</div>
</div>
<div class="text-left" style="margin-top: 50px;">
<div class="text-left" style="margin-top: 50px;" ng-show="showExternalLdap">
<h3>External LDAP</h3>
</div>
<div class="card card-large">
<div class="card card-large" ng-show="showExternalLdap">
<div class="row">
<div class="col-md-12">
<p>

View File

@@ -9,6 +9,9 @@
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
// TODO remove this later when we know with which edtion to show
$scope.showExternalLdap = $location.search().ldap;
$scope.ready = false;
$scope.users = [];
$scope.usersById = [];