Lines Matching full:scope

13     '$scope', 'APIUtils', '$q', 'Constants', 'toastService', '$timeout',
16 $scope, APIUtils, $q, Constants, toastService, $timeout, $uibModal) { argument
17 $scope.loading = false;
18 $scope.certificates = [];
19 $scope.availableCertificateTypes = [];
20 $scope.allCertificateTypes = Constants.CERTIFICATE_TYPES;
21 $scope.newCertificate = {};
22 $scope.newCSR = {};
23 $scope.keyBitLength = Constants.CERTIFICATE.KEY_BIT_LENGTH;
24 $scope.keyPairAlgorithm = Constants.CERTIFICATE.KEY_PAIR_ALGORITHM;
25 $scope.keyCurveId = Constants.CERTIFICATE.KEY_CURVE_ID;
26 $scope.countryList = Constants.COUNTRIES;
28 $scope.$on('$viewContentLoaded', () => {
32 $scope.loadCertificates = function() {
33 $scope.certificates = [];
34 $scope.availableCertificateTypes = Constants.CERTIFICATE_TYPES;
35 $scope.loading = true;
52 $scope.loading = false;
53 $scope.certificates.sort(function(a, b) {
74 $scope.loading = false;
75 $scope.availableCertificateTypes = [];
81 $scope.uploadCertificate = function() {
82 if ($scope.newCertificate.file.name.split('.').pop() !== 'pem') {
88 $scope.newCertificate.file, $scope.newCertificate.selectedType)
92 $scope.newCertificate.selectedType.name +
94 $scope.newCertificate = {};
95 $scope.loadCertificates();
99 $scope.newCertificate.selectedType.name +
110 $scope.certificates.push(certificate);
121 ($scope.bmcTime) / 1000;
133 $scope.names = [];
134 $scope.addOptionalRow = function() {
135 $scope.names.push({Value: ''})
139 $scope.deleteOptionalRow = function(index) {
140 $scope.names.splice(index, 1);
141 if ($scope.names.length == 0) {
142 $scope.names = [];
147 $scope.getCSRCode = function() {
149 let alternativeNames = $scope.names.map(name => name.Value);
153 $scope.newCSR.firstAlternativeName ?
154 alternativeNames.push($scope.newCSR.firstAlternativeName) :
155 $scope.newCSR.firstAlternativeName = '';
158 '@odata.id': $scope.newCSR.certificateCollection.location
160 addCSR.CommonName = $scope.newCSR.commonName;
161 addCSR.ContactPerson = $scope.newCSR.contactPerson || '';
162 addCSR.City = $scope.newCSR.city;
164 addCSR.ChallengePassword = $scope.newCSR.challengePassword || '';
165 addCSR.Email = $scope.newCSR.emailAddress || '';
166 addCSR.Country = $scope.newCSR.countryCode.code;
167 addCSR.Organization = $scope.newCSR.organization;
168 addCSR.OrganizationalUnit = $scope.newCSR.companyUnit;
169 addCSR.KeyCurveId = $scope.newCSR.keyCurveId || '';
170 addCSR.KeyBitLength = $scope.newCSR.keyBitLength
171 addCSR.KeyPairAlgorithm = $scope.newCSR.keyPairAlgorithm || '';
172 addCSR.State = $scope.newCSR.state;
176 $scope.csrCode = data;
192 scope: $scope, property in AnonymousClassad1aabe10e01
201 $scope.addCertModal = function() {
212 scope: $scope, property in AnonymousClassad1aabe11001
220 $scope.addCsrModal = function() {
230 scope: $scope, property in AnonymousClassad1aabe11201
242 $scope.newCSR.certificateCollection = $scope.selectOption;
243 $scope.newCSR.commonName = '';
244 $scope.newCSR.contactPerson = '';
245 $scope.newCSR.city = '';
246 $scope.names = [];
247 $scope.newCSR.challengePassword = '';
248 $scope.newCSR.emailAddress = '';
249 $scope.newCSR.countryCode = '';
250 $scope.newCSR.keyCurveId = '';
251 $scope.newCSR.firstAlternativeName = '';
252 $scope.newCSR.keyBitLength = $scope.selectOption;
253 $scope.newCSR.keyPairAlgorithm = $scope.selectOption;
254 $scope.newCSR.organization = '';
255 $scope.newCSR.companyUnit = '';
256 $scope.newCSR.state = '';
260 $scope.copySuccess = function(event) {
261 $scope.copied = true;
263 $scope.copied = false;
266 $scope.copyFailed = function(err) {
273 $scope.bmcTime = data.data.Elapsed;
276 return $scope.bmcTime;
280 $scope.availableCertificateTypes =
281 $scope.availableCertificateTypes.filter(function(type) {
289 $scope.getDays = function(endDate) {
292 var ms = (new Date(endDate).getTime()) - ($scope.bmcTime) / 1000;
296 $scope.loadCertificates();