diff --git a/frontend/src/component/incomingWebhooks/IncomingWebhooksTable/IncomingWebhooksTable.tsx b/frontend/src/component/incomingWebhooks/IncomingWebhooksTable/IncomingWebhooksTable.tsx index b59f903413..4f7bdf3118 100644 --- a/frontend/src/component/incomingWebhooks/IncomingWebhooksTable/IncomingWebhooksTable.tsx +++ b/frontend/src/component/incomingWebhooks/IncomingWebhooksTable/IncomingWebhooksTable.tsx @@ -16,12 +16,12 @@ import { IIncomingWebhook } from 'interfaces/incomingWebhook'; import { IncomingWebhooksActionsCell } from './IncomingWebhooksActionsCell'; import { IncomingWebhooksDeleteDialog } from './IncomingWebhooksDeleteDialog'; import { ToggleCell } from 'component/common/Table/cells/ToggleCell/ToggleCell'; -import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell'; import copy from 'copy-to-clipboard'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import { IncomingWebhookTokensCell } from './IncomingWebhooksTokensCell'; import { IncomingWebhooksModal } from '../IncomingWebhooksModal/IncomingWebhooksModal'; import { IncomingWebhooksTokensDialog } from '../IncomingWebhooksModal/IncomingWebhooksForm/IncomingWebhooksTokens/IncomingWebhooksTokensDialog'; +import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell'; interface IIncomingWebhooksTableProps { modalOpen: boolean; @@ -91,8 +91,12 @@ export const IncomingWebhooksTable = ({ Cell: ({ row: { original: incomingWebhook }, }: { row: { original: IIncomingWebhook } }) => ( - { + setSelectedIncomingWebhook(incomingWebhook); + setModalOpen(true); + }} subtitle={incomingWebhook.description} /> ), diff --git a/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsTable.tsx b/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsTable.tsx index 77877a9c97..ea1def9015 100644 --- a/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsTable.tsx +++ b/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsTable.tsx @@ -23,6 +23,7 @@ import { ProjectActionsDeleteDialog } from './ProjectActionsDeleteDialog'; import { useServiceAccounts } from 'hooks/api/getters/useServiceAccounts/useServiceAccounts'; import { useIncomingWebhooks } from 'hooks/api/getters/useIncomingWebhooks/useIncomingWebhooks'; import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; +import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell'; interface IProjectActionsTableProps { modalOpen: boolean; @@ -88,6 +89,17 @@ export const ProjectActionsTable = ({ Header: 'Name', accessor: 'name', minWidth: 60, + Cell: ({ + row: { original: action }, + }: { row: { original: IActionSet } }) => ( + { + setSelectedAction(action); + setModalOpen(true); + }} + /> + ), }, { id: 'trigger',