fts: immediately show status in ui

This commit is contained in:
Girish Ramakrishnan
2020-12-04 15:51:36 -08:00
parent 35ba5fc766
commit 6c79aaae49

View File

@@ -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);
});