diff --git a/src/views/emails.js b/src/views/emails.js index ab930eaaa..e36b7f24b 100644 --- a/src/views/emails.js +++ b/src/views/emails.js @@ -252,7 +252,12 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati $timeout(function () { $scope.solrConfig.busy = false; - $scope.solrConfig.refresh(); + // FIXME: these values are fake. but cannot get current status from mail server since it might be restarting + $scope.solrConfig.currentConfig.enabled = $scope.solrConfig.enabled; + $scope.solrConfig.running = $scope.solrConfig.enabled; + + $timeout(function () { $scope.solrConfig.refresh(); }, 20000); // get real values after 20 seconds + $('#solrConfigModal').modal('hide'); }, 5000); });