File tree Expand file tree Collapse file tree
src/components/table/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @netdata/netdata-ui" ,
3- "version" : " 5.0.49 " ,
3+ "version" : " 5.0.50 " ,
44 "description" : " netdata UI kit" ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/es6/index.js" ,
Original file line number Diff line number Diff line change 11import React , { useState , useMemo } from "react"
2-
32import Tooltip from "@/components/drops/tooltip"
43import Flex from "@/components/templates/flex"
5-
64import { ConfirmationDialog } from "@/components/confirmation-dialog"
75import { Button , IconButton } from "@/components/button"
86
@@ -30,6 +28,7 @@ const Action = ({
3028 flavour = "borderless" ,
3129 CustomUIAction,
3230 CustomComponent,
31+ onCustomComponentClick,
3332 label,
3433 TooltipComponent = Tooltip ,
3534 ref,
@@ -42,6 +41,9 @@ const Action = ({
4241 e . stopPropagation ( )
4342 if ( confirmation || CustomUIAction ) {
4443 setConfirmationOpen ( true )
44+ if ( typeof onCustomComponentClick === "function" ) {
45+ onCustomComponentClick ( currentRow ?. original || selectedRows )
46+ }
4547 return
4648 }
4749 handleAction ( )
You can’t perform that action at this time.
0 commit comments