Skip to content

Commit db9d33f

Browse files
feat: ga for edit dep btn
1 parent db7b408 commit db9d33f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/app/Overview/Overview.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { EnvironmentList } from './EnvironmentList'
3535
import { MAX_LENGTH_350 } from '../../../config/constantMessaging'
3636
import { getModuleInfo } from '../../v2/devtronStackManager/DevtronStackManager.service'
3737
import { MODAL_STATE, OVERVIEW_TABS, TAB_SEARCH_KEY } from './constants'
38+
import ReactGA from 'react-ga4'
3839
const MandatoryTagWarning = importComponentFromFELibrary('MandatoryTagWarning')
3940
const Catalog = importComponentFromFELibrary('Catalog')
4041
const DependencyList = importComponentFromFELibrary('DependencyList')
@@ -79,6 +80,12 @@ export default function AppOverview({ appMetaInfo, getAppMetaInfoRes, filteredEn
7980
}
8081

8182
const toggleUpdateDependencyModal = () => {
83+
ReactGA.event({
84+
category: 'Application Dependency',
85+
action: 'Edit Dependency',
86+
label: 'Edit Dependency',
87+
})
88+
8289
if (isUpdateDependencyModalOpen) {
8390
searchParams.delete(MODAL_STATE.key)
8491
} else {
@@ -481,6 +488,7 @@ export default function AppOverview({ appMetaInfo, getAppMetaInfoRes, filteredEn
481488
isUpdateModalOpen={isUpdateDependencyModalOpen}
482489
toggleUpdateModalOpen={toggleUpdateDependencyModal}
483490
toggleButtonDisabledState={setIsEditDependencyButtonDisabled}
491+
filteredEnvIds={filteredEnvIds}
484492
/>
485493
) : null,
486494
}

0 commit comments

Comments
 (0)