From 3f52c9fb278d45cd28f70c3a1da0b585e41c662b Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 26 Feb 2020 13:36:25 +0500 Subject: [PATCH] fix: https://github.com/usmannasir/cyberpanel/issues/269 --- mailServer/static/mailServer/mailServer.js | 5 +++++ mailServer/templates/mailServer/emailForwarding.html | 2 +- static/mailServer/mailServer.js | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mailServer/static/mailServer/mailServer.js b/mailServer/static/mailServer/mailServer.js index dc162982e..f50b36a45 100755 --- a/mailServer/static/mailServer/mailServer.js +++ b/mailServer/static/mailServer/mailServer.js @@ -886,6 +886,11 @@ app.controller('emailForwarding', function ($scope, $http) { $scope.fetchCurrentForwardings = function () { + if($scope.forwardingOption == null || $scope.selectedEmail == null ){ + $scope.forwardLoading = true; + return 0; + } + $scope.creationBox = false; $scope.emailDetails = false; $scope.forwardLoading = false; diff --git a/mailServer/templates/mailServer/emailForwarding.html b/mailServer/templates/mailServer/emailForwarding.html index 7199ffdaa..deed9f909 100755 --- a/mailServer/templates/mailServer/emailForwarding.html +++ b/mailServer/templates/mailServer/emailForwarding.html @@ -51,7 +51,7 @@
-
diff --git a/static/mailServer/mailServer.js b/static/mailServer/mailServer.js index dc162982e..f50b36a45 100644 --- a/static/mailServer/mailServer.js +++ b/static/mailServer/mailServer.js @@ -886,6 +886,11 @@ app.controller('emailForwarding', function ($scope, $http) { $scope.fetchCurrentForwardings = function () { + if($scope.forwardingOption == null || $scope.selectedEmail == null ){ + $scope.forwardLoading = true; + return 0; + } + $scope.creationBox = false; $scope.emailDetails = false; $scope.forwardLoading = false;