fts: immediately show status in ui
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user