Skip to content

Commit 3f52c9f

Browse files
committed
fix: #269
1 parent 8ca2778 commit 3f52c9f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

mailServer/static/mailServer/mailServer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ app.controller('emailForwarding', function ($scope, $http) {
886886

887887
$scope.fetchCurrentForwardings = function () {
888888

889+
if($scope.forwardingOption == null || $scope.selectedEmail == null ){
890+
$scope.forwardLoading = true;
891+
return 0;
892+
}
893+
889894
$scope.creationBox = false;
890895
$scope.emailDetails = false;
891896
$scope.forwardLoading = false;

mailServer/templates/mailServer/emailForwarding.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h3>{% trans "Postfix is disabled." %}
5151
<div ng-hide="emailDetails" class="form-group">
5252
<label class="col-sm-3 control-label">{% trans "Select Email" %} </label>
5353
<div class="col-sm-6">
54-
<select ng-model="selectedEmail" class="form-control">
54+
<select ng-change="selectForwardingEmail()" ng-model="selectedEmail" class="form-control">
5555
<option ng-repeat="email in emails track by $index">{$ email.email $}</option>
5656
</select>
5757
</div>

static/mailServer/mailServer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ app.controller('emailForwarding', function ($scope, $http) {
886886

887887
$scope.fetchCurrentForwardings = function () {
888888

889+
if($scope.forwardingOption == null || $scope.selectedEmail == null ){
890+
$scope.forwardLoading = true;
891+
return 0;
892+
}
893+
889894
$scope.creationBox = false;
890895
$scope.emailDetails = false;
891896
$scope.forwardLoading = false;

0 commit comments

Comments
 (0)