Show spinner when solr config is toggled

This commit is contained in:
Girish Ramakrishnan
2020-12-02 16:48:20 -08:00
parent 9b8d8ed544
commit cd3fbda09c
2 changed files with 6 additions and 6 deletions

View File

@@ -240,13 +240,13 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
$scope.solrConfig.busy = true;
Client.setSolrConfig($scope.solrConfig.enabled, function (error) {
$scope.solrConfig.busy = false;
if (error) return console.error(error);
$scope.solrConfig.refresh();
$('#solrConfigModal').modal('hide');
$timeout(function () {
$scope.solrConfig.busy = false;
$scope.solrConfig.refresh();
$('#solrConfigModal').modal('hide');
}, 5000);
});
}
};