Skip to content

Commit 7b9f671

Browse files
committed
added: chart source onlick action
1 parent 0d1c96d commit 7b9f671

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/components/charts/list/ChartListPopUp.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,12 @@ function ChartListPopUp({
6060
setShowAddPopUp(!showAddPopUp)
6161
}
6262

63-
const onClickAddSource = (e) => {
64-
if (serverMode === SERVER_MODE.EA_ONLY) {
65-
history.push(URLS.GLOBAL_CONFIG_CHART)
66-
} else {
67-
toggleAddPopUp(e)
68-
}
69-
}
70-
7163
const renderChartListHeaders = () => {
7264
return (
7365
<div className="pt-12 pb-12 pl-16 flex dc__content-space dc__border-bottom fw-6">
7466
<span>Helm chart sources</span>
7567
<div className="flex">
76-
<div className="flex cb-5 fw-6 cursor mr-12" onClick={onClickAddSource}>
68+
<div className="flex cb-5 fw-6 cursor mr-12" onClick={toggleAddPopUp}>
7769
<Add className="icon-dim-20 fcb-5 mr-8" />
7870
Add
7971
</div>

0 commit comments

Comments
 (0)