Skip to content

Commit

Permalink
Revert "[Management] Saved objects UI should use the Saved Objects cl…
Browse files Browse the repository at this point in the history
…ient (elastic#19193)"

This reverts commit fcec107.
  • Loading branch information
epixa committed May 19, 2018
1 parent 087b93d commit 3936eb5
Show file tree
Hide file tree
Showing 6 changed files with 418 additions and 245 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function updateObjectsTable($scope, $injector) {
basePath={chrome.getBasePath()}
newIndexPatternUrl={kbnUrl.eval('#/management/kibana/index')}
getEditUrl={(id, type) => {
if (type === 'index-pattern' || type === 'indexPatterns') {
if (type === 'index-pattern') {
return kbnUrl.eval(`#/management/kibana/indices/${id}`);
}
const serviceName = typeToServiceName(type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export class ObjectsTable extends Component {
const filterOptions = INCLUDED_TYPES.map(type => ({
value: type,
name: type,
view: `${type} (${savedObjectCounts[type] || 0})`,
view: `${type} (${savedObjectCounts[type]})`,
}));

return (
Expand Down
Loading

0 comments on commit 3936eb5

Please sign in to comment.