Revert "[savedObjectEditor] switch to mget to prevent caching in IE"
This reverts commit 86727c818b
.
This commit is contained in:
parent
1a405e1666
commit
b91d6b8489
|
@ -103,20 +103,16 @@ define(function (require) {
|
|||
|
||||
$scope.title = inflection.singularize(serviceObj.title);
|
||||
|
||||
es.mget({
|
||||
body: {
|
||||
docs: [{
|
||||
_index: config.file.kibana_index,
|
||||
_type: service.type,
|
||||
_id: $routeParams.id
|
||||
}]
|
||||
}
|
||||
es.get({
|
||||
index: config.file.kibana_index,
|
||||
type: service.type,
|
||||
id: $routeParams.id
|
||||
})
|
||||
.then(function (resp) {
|
||||
$scope.obj = resp.docs[0];
|
||||
$scope.link = service.urlFor($scope.obj._id);
|
||||
.then(function (obj) {
|
||||
$scope.obj = obj;
|
||||
$scope.link = service.urlFor(obj._id);
|
||||
|
||||
var fields = _.reduce($scope.obj._source, createField, []);
|
||||
var fields = _.reduce(obj._source, createField, []);
|
||||
if (service.Class) readObjectClass(fields, service.Class);
|
||||
$scope.fields = _.sortBy(fields, 'name');
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue