Adding a better comparison. (#320)
This commit is contained in:
@ -102,6 +102,7 @@ angular.module('lemur')
|
||||
$scope.authorityConfig = {
|
||||
valueField: 'id',
|
||||
labelField: 'name',
|
||||
highlight: true,
|
||||
placeholder: 'Select Authority',
|
||||
maxItems: 1,
|
||||
onChange: function (value) {
|
||||
@ -141,19 +142,6 @@ angular.module('lemur')
|
||||
opened: false
|
||||
};
|
||||
|
||||
var formatAuthorities = function (authorities) {
|
||||
var newAuthorities = [];
|
||||
angular.forEach(authorities, function (authority) {
|
||||
authority.formatted = authority.name + '<span class="text-muted"> - ' + authority.description + '</span>';
|
||||
newAuthorities.push(authority);
|
||||
});
|
||||
return newAuthorities;
|
||||
};
|
||||
|
||||
AuthorityService.findActiveAuthorityByName().then(function (authorities) {
|
||||
$scope.authorities = formatAuthorities(authorities);
|
||||
});
|
||||
|
||||
$scope.create = function (certificate) {
|
||||
WizardHandler.wizard().context.loading = true;
|
||||
CertificateService.create(certificate).then(
|
||||
|
Reference in New Issue
Block a user