From 16f43e3eac01357b9bad1ef23e1a58032f37909b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 23 Jan 2018 12:38:19 +0100 Subject: [PATCH] Fixup the status check logic --- webadmin/src/views/email.html | 14 +++++++------- webadmin/src/views/email.js | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/webadmin/src/views/email.html b/webadmin/src/views/email.html index e9cb18ef6..51471c33f 100644 --- a/webadmin/src/views/email.html +++ b/webadmin/src/views/email.html @@ -96,7 +96,7 @@
- +
This feature requires the Cloudron to be on custom domain. @@ -220,7 +220,7 @@

  {{ record.name }} record - +

@@ -254,7 +254,7 @@ Outbound SMTP - +

@@ -267,16 +267,16 @@

-   +   IP Address Blacklist Check - +

-
This server's IP {{ rbl.ip }} is not blacklisted.
-
+
This server's IP {{ selectedDomain.mailStatus.rbl.ip }} is not blacklisted.
+
diff --git a/webadmin/src/views/email.js b/webadmin/src/views/email.js index 65510ba10..85ac312c5 100644 --- a/webadmin/src/views/email.js +++ b/webadmin/src/views/email.js @@ -285,6 +285,24 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio }); }; + $scope.refreshStatus = function () { + $scope.refreshBusy = true; + + Client.getMailStatusForDomain($scope.selectedDomain.domain, function (error, mailStatus) { + if (error) { + $scope.refreshBusy = false; + return console.error(error); + } + + // overwrite the selected domain status to be available for the UI + $scope.selectedDomain.mailStatus = mailStatus; + + showExpectedDnsRecords(); + + $scope.refreshBusy = false; + }); + }; + function getCatchallAddresses() { Client.getCatchallAddresses(function (error, result) { if (error) return console.error('Unable to get catchall address listing.', error);