clean up a bit
This commit is contained in:
parent
5beb319b27
commit
5125990c4c
@ -7,4 +7,4 @@ def get_all_dns_providers(status="active"):
|
||||
|
||||
:return:
|
||||
"""
|
||||
return DnsProviders.query.all(status=status)
|
||||
return DnsProviders.query.all(status=status)
|
||||
|
@ -51,7 +51,6 @@ angular.module('lemur')
|
||||
}
|
||||
});
|
||||
});
|
||||
console.log("HERE2")
|
||||
|
||||
$scope.getAuthoritiesByName = function (value) {
|
||||
return AuthorityService.findAuthorityByName(value).then(function (authorities) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
static/app/angular/certificates/certificate/tracking.tpl.html<form name="trackingForm" novalidate>
|
||||
<form name="trackingForm" novalidate>
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error': trackingForm.ownerEmail.$invalid, 'has-success': !trackingForm.$invalid&&trackingForm.ownerEmail.$dirty}">
|
||||
|
@ -44,22 +44,20 @@ angular.module('lemur')
|
||||
|
||||
DestinationApi.get(editId).then(function (destination) {
|
||||
$scope.destination = destination;
|
||||
console.log("HERE1");
|
||||
|
||||
PluginService.getByType('destination').then(function (plugins) {
|
||||
$scope.plugins = plugins;
|
||||
_.each($scope.plugins, function (plugin) {
|
||||
console.log("HERE2");
|
||||
|
||||
if (plugin.slug === $scope.destination.plugin.slug) {
|
||||
plugin.pluginOptions = $scope.destination.plugin.pluginOptions;
|
||||
$scope.destination.plugin = plugin;
|
||||
_.each($scope.destination.plugin.pluginOptions, function (option) {
|
||||
console.log("HERE3");
|
||||
if (option.type === 'export-plugin') {
|
||||
PluginService.getByType('export').then(function (plugins) {
|
||||
$scope.exportPlugins = plugins;
|
||||
|
||||
_.each($scope.exportPlugins, function (plugin) {
|
||||
console.log("HERE4");
|
||||
if (plugin.slug === option.value.slug) {
|
||||
plugin.pluginOptions = option.value.pluginOptions;
|
||||
option.value = plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user