Skip to content

Commit

Permalink
[Management] Saved objects UI should use the Saved Objects client (#1…
Browse files Browse the repository at this point in the history
…9193) (#19227)

* Ensure we always go through the saved objects client

* Fix a couple UI glitches

* Update these tests too

* Update snapshots
  • Loading branch information
chrisronline committed May 18, 2018
1 parent 05640a3 commit 7e0e77b
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 418 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') {
if (type === 'index-pattern' || type === 'indexPatterns') {
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]})`,
view: `${type} (${savedObjectCounts[type] || 0})`,
}));

return (
Expand Down

0 comments on commit 7e0e77b

Please sign in to comment.