clean up a bit

This commit is contained in:
Curtis Castrapel 2018-04-11 07:48:04 -07:00
parent b0bd0435c4
commit a66d85b63d
4 changed files with 4 additions and 7 deletions

View File

@ -7,4 +7,4 @@ def get_all_dns_providers(status="active"):
:return:
"""
return DnsProviders.query.all(status=status)
return DnsProviders.query.all(status=status)

View File

@ -51,7 +51,6 @@ angular.module('lemur')
}
});
});
console.log("HERE2")
$scope.getAuthoritiesByName = function (value) {
return AuthorityService.findAuthorityByName(value).then(function (authorities) {

View File

@ -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}">

View File

@ -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;