Lines Matching full:scope
13 '$scope', 'APIUtils', '$q', 'toastService',
14 function($scope, APIUtils, $q, toastService) { argument
15 $scope.loading = false;
16 $scope.isSecure = false;
17 $scope.ldapProperties = {};
18 $scope.originalLdapProperties = {};
19 $scope.submitted = false;
20 $scope.roleGroups = [];
21 $scope.roleGroupType = '';
22 $scope.ldapCertExpiration = '';
23 $scope.caCertExpiration = '';
25 $scope.$on('$viewContentLoaded', function() {
26 $scope.loadLdap();
29 $scope.loadLdap = function() {
30 $scope.loading = true;
31 $scope.submitted = false;
78 $scope.ldapProperties = results[0];
79 $scope.originalLdapProperties = angular.copy(results[0]);
80 $scope.roleGroupType = results[0].EnabledServiceType;
81 $scope.roleGroups = results[0].RoleGroups;
82 $scope.ldapCertificate = results[1];
83 $scope.caCertificate = results[2];
84 $scope.loading = false;
94 $scope.saveLdapSettings = function() {
95 const enabledServiceType = $scope.ldapProperties.EnabledServiceType;
97 createLdapEnableRequest(enabledServiceType, $scope.ldapProperties);
111 $scope.loadLdap();
118 $scope.loadLdap();
135 $scope.updateServiceEnabled = () => {
137 $scope.originalLdapProperties.EnabledServiceType;
139 if (!$scope.ldapProperties.ServiceEnabled &&
141 $scope.ldapProperties.EnabledServiceType = '';
149 $scope.roleGroups = [];
150 $scope.loadLdap();