diff --git a/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap b/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap index 65b709610..920bf5b24 100644 --- a/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap +++ b/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap @@ -853,7 +853,6 @@ Object { - EuiIconMock diff --git a/public/pages/Rollups/containers/Rollups/Rollups.tsx b/public/pages/Rollups/containers/Rollups/Rollups.tsx index b01aa8f66..59caa254d 100644 --- a/public/pages/Rollups/containers/Rollups/Rollups.tsx +++ b/public/pages/Rollups/containers/Rollups/Rollups.tsx @@ -100,10 +100,19 @@ export class Rollups extends MDSEnabledComponent { this.getRollups = _.debounce(this.getRollups, 500, { leading: true }); } + async updateBreadCrumbs() { + if (this.state.useNewUX) { + this.context.chrome.setBreadcrumbs([ + { text: BREADCRUMBS.ROLLUPS.text.concat(` (${this.state.rollups.length})`), href: BREADCRUMBS.ROLLUPS.href }, + ]); + } + } + async componentDidMount() { const breadCrumbs = this.state.useNewUX ? [BREADCRUMBS.ROLLUPS] : [BREADCRUMBS.INDEX_MANAGEMENT, BREADCRUMBS.ROLLUPS]; this.context.chrome.setBreadcrumbs(breadCrumbs); await this.getRollups(); + this.updateBreadCrumbs(); } async componentDidUpdate(prevProps: RollupsProps, prevState: RollupsState) { @@ -112,6 +121,7 @@ export class Rollups extends MDSEnabledComponent { if (!_.isEqual(prevQuery, currQuery)) { await this.getRollups(); } + this.updateBreadCrumbs(); } static getQueryObjectFromState({ diff --git a/public/pages/Transforms/containers/Transforms/Transforms.tsx b/public/pages/Transforms/containers/Transforms/Transforms.tsx index 3eca49a72..1b412765e 100644 --- a/public/pages/Transforms/containers/Transforms/Transforms.tsx +++ b/public/pages/Transforms/containers/Transforms/Transforms.tsx @@ -100,10 +100,19 @@ export class Transforms extends MDSEnabledComponent - + {text ? text : restore ? "Restore snapshot" : !save ? `${edit ? "Edit" : "Add"} ${action}` : save ? "Save" : "Create"} diff --git a/public/pages/VisualCreatePolicy/components/FlyoutFooter/__snapshots__/FlyoutFooter.test.tsx.snap b/public/pages/VisualCreatePolicy/components/FlyoutFooter/__snapshots__/FlyoutFooter.test.tsx.snap index c227dabf4..dac92897b 100644 --- a/public/pages/VisualCreatePolicy/components/FlyoutFooter/__snapshots__/FlyoutFooter.test.tsx.snap +++ b/public/pages/VisualCreatePolicy/components/FlyoutFooter/__snapshots__/FlyoutFooter.test.tsx.snap @@ -34,7 +34,6 @@ exports[` spec renders the component 1`] = ` - EuiIconMock