Skip to content

Commit 8add136

Browse files
author
Sandeep Kumawat
committed
Transform numbers in title
Signed-off-by: Sandeep Kumawat <[email protected]>
1 parent e5c98d6 commit 8add136

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

public/pages/Transforms/containers/Transforms/Transforms.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,19 @@ export class Transforms extends MDSEnabledComponent<TransformProps, TransformSta
100100
this.getTransforms = _.debounce(this.getTransforms, 500, { leading: true });
101101
}
102102

103+
async updateBreadCrumbs() {
104+
if (this.state.useUpdatedUX) {
105+
this.context.chrome.setBreadcrumbs([
106+
{ text: BREADCRUMBS.TRANSFORMS.text.concat(` (${this.state.transforms.length})`), href: BREADCRUMBS.TRANSFORMS.href },
107+
]);
108+
}
109+
}
110+
103111
async componentDidMount() {
104112
const breadCrumbs = this.state.useUpdatedUX ? [BREADCRUMBS.TRANSFORMS] : [BREADCRUMBS.INDEX_MANAGEMENT, BREADCRUMBS.TRANSFORMS];
105113
this.context.chrome.setBreadcrumbs(breadCrumbs);
106114
await this.getTransforms();
115+
this.updateBreadCrumbs();
107116
}
108117

109118
async componentDidUpdate(prevProps: TransformProps, prevState: TransformState) {
@@ -112,6 +121,7 @@ export class Transforms extends MDSEnabledComponent<TransformProps, TransformSta
112121
if (!_.isEqual(prevQuery, currQuery)) {
113122
await this.getTransforms();
114123
}
124+
this.updateBreadCrumbs();
115125
}
116126

117127
render() {

0 commit comments

Comments
 (0)