mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ML] Adds applyAsync to updates in the Data Visualizer (#28241)
This commit is contained in:
parent
4a9a69a5b1
commit
1afe7c2667
1 changed files with 10 additions and 3 deletions
|
@ -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();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue