From a66d85b63dece650f4ab2c18b7bc4e6b404e55c8 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Wed, 11 Apr 2018 07:48:04 -0700 Subject: [PATCH] clean up a bit --- lemur/dns_providers/service.py | 2 +- lemur/static/app/angular/authorities/authority/authority.js | 1 - .../app/angular/certificates/certificate/tracking.tpl.html | 2 +- .../app/angular/destinations/destination/destination.js | 6 ++---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lemur/dns_providers/service.py b/lemur/dns_providers/service.py index 3a376040..0ed27315 100644 --- a/lemur/dns_providers/service.py +++ b/lemur/dns_providers/service.py @@ -7,4 +7,4 @@ def get_all_dns_providers(status="active"): :return: """ - return DnsProviders.query.all(status=status) \ No newline at end of file + return DnsProviders.query.all(status=status) diff --git a/lemur/static/app/angular/authorities/authority/authority.js b/lemur/static/app/angular/authorities/authority/authority.js index 223d8fc6..9863bf4d 100644 --- a/lemur/static/app/angular/authorities/authority/authority.js +++ b/lemur/static/app/angular/authorities/authority/authority.js @@ -51,7 +51,6 @@ angular.module('lemur') } }); }); - console.log("HERE2") $scope.getAuthoritiesByName = function (value) { return AuthorityService.findAuthorityByName(value).then(function (authorities) { diff --git a/lemur/static/app/angular/certificates/certificate/tracking.tpl.html b/lemur/static/app/angular/certificates/certificate/tracking.tpl.html index fa8425ad..21277106 100644 --- a/lemur/static/app/angular/certificates/certificate/tracking.tpl.html +++ b/lemur/static/app/angular/certificates/certificate/tracking.tpl.html @@ -1,4 +1,4 @@ -static/app/angular/certificates/certificate/tracking.tpl.html
+
diff --git a/lemur/static/app/angular/destinations/destination/destination.js b/lemur/static/app/angular/destinations/destination/destination.js index 03533949..f5210074 100644 --- a/lemur/static/app/angular/destinations/destination/destination.js +++ b/lemur/static/app/angular/destinations/destination/destination.js @@ -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;