[ML] Adds applyAsync to updates in the Data Visualizer (#28241)

This commit is contained in:
Pete Harverson 2019-01-09 11:05:32 +00:00 committed by GitHub
parent 4a9a69a5b1
commit 1afe7c2667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,6 @@ import { SearchItemsProvider } from 'plugins/ml/jobs/new_job/utils/new_job_utils
import { loadCurrentIndexPattern, loadCurrentSavedSearch, timeBasedIndexCheck } from 'plugins/ml/util/index_utils';
import { checkMlNodesAvailable } from 'plugins/ml/ml_nodes_check/check_ml_nodes';
import { ml } from 'plugins/ml/services/ml_api_service';
import { initPromise } from 'plugins/ml/util/promise';
import template from './datavisualizer.html';
uiRoutes
@ -43,8 +42,7 @@ uiRoutes
privileges: checkGetJobsPrivilege,
indexPattern: loadCurrentIndexPattern,
savedSearch: loadCurrentSavedSearch,
checkMlNodesAvailable,
initPromise: initPromise(true)
checkMlNodesAvailable
}
});
@ -526,6 +524,9 @@ module
{ lifetime: 30000 }
);
}
})
.then(() => {
$scope.$applyAsync();
});
}
@ -593,6 +594,9 @@ module
{ lifetime: 30000 }
);
}
})
.then(() => {
$scope.$applyAsync();
});
} else {
$scope.fieldFilterIcon = 0;
@ -659,6 +663,9 @@ module
{ lifetime: 30000 }
);
}
$scope.$applyAsync();
});
}