Fixes: U4-6891 Can't get to the "Rebuild" button when Lucene index folder is empty as well as how the polling works.

This commit is contained in:
Shannon
2015-08-05 18:32:59 +02:00
parent 4c20441c4e
commit 91a5b19378
2 changed files with 49 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ function examineMgmtController($scope, umbRequestHelper, $log, $http, $q, $timeo
'Failed to check index processing')
.then(function(data) {
if (data) {
if (data !== null && data !== "null") {
//copy all resulting properties
for (var k in data) {
@@ -67,7 +67,9 @@ function examineMgmtController($scope, umbRequestHelper, $log, $http, $q, $timeo
"Depending on how much content there is in your site this could take a while. " +
"It is not recommended to rebuild an index during times of high website traffic " +
"or when editors are editing content.")) {
indexer.isProcessing = true;
indexer.processingAttempts = 0;
umbRequestHelper.resourcePromise(
$http.post(umbRequestHelper.getApiUrl("examineMgmtBaseUrl", "PostRebuildIndex", { indexerName: indexer.name })),