diff --git a/package.json b/package.json index 5ef5eeedb..1f84830dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netdata/netdata-ui", - "version": "5.0.49", + "version": "5.0.50", "description": "netdata UI kit", "main": "dist/index.js", "module": "dist/es6/index.js", diff --git a/src/components/table/components/action.js b/src/components/table/components/action.js index 7dd001bd3..19afdc9f4 100644 --- a/src/components/table/components/action.js +++ b/src/components/table/components/action.js @@ -1,8 +1,6 @@ import React, { useState, useMemo } from "react" - import Tooltip from "@/components/drops/tooltip" import Flex from "@/components/templates/flex" - import { ConfirmationDialog } from "@/components/confirmation-dialog" import { Button, IconButton } from "@/components/button" @@ -30,6 +28,7 @@ const Action = ({ flavour = "borderless", CustomUIAction, CustomComponent, + onCustomComponentClick, label, TooltipComponent = Tooltip, ref, @@ -42,6 +41,9 @@ const Action = ({ e.stopPropagation() if (confirmation || CustomUIAction) { setConfirmationOpen(true) + if (typeof onCustomComponentClick === "function") { + onCustomComponentClick(currentRow?.original || selectedRows) + } return } handleAction()