Skip to content

Commit

Permalink
fix: #269
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 26, 2020
1 parent 8ca2778 commit 3f52c9f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mailServer/static/mailServer/mailServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion mailServer/templates/mailServer/emailForwarding.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3>{% trans "Postfix is disabled." %}
<div ng-hide="emailDetails" class="form-group">
<label class="col-sm-3 control-label">{% trans "Select Email" %} </label>
<div class="col-sm-6">
<select ng-model="selectedEmail" class="form-control">
<select ng-change="selectForwardingEmail()" ng-model="selectedEmail" class="form-control">
<option ng-repeat="email in emails track by $index">{$ email.email $}</option>
</select>
</div>
Expand Down
5 changes: 5 additions & 0 deletions static/mailServer/mailServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f52c9f

Please sign in to comment.