From 6c79aaae49eed02d05255652d8ef00f5d3e55275 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 4 Dec 2020 15:51:36 -0800 Subject: [PATCH] fts: immediately show status in ui --- src/views/emails.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); });