Skip to content

Commit c8a3a89

Browse files
1210 Implements onMoreSubscriptionsClick to navigate to the detail page
1 parent 7b7d551 commit c8a3a89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/orchestrator-ui-components/src/components/WfoProcessList/WfoProcessesList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22

33
import { useTranslations } from 'next-intl';
44
import Link from 'next/link';
5+
import { useRouter } from 'next/router';
56

67
import {
78
FilterQuery,
@@ -99,6 +100,7 @@ export const WfoProcessesList = ({
99100
const t = useTranslations('processes.index');
100101
const tError = useTranslations('errors');
101102
const { showToastMessage } = useShowToastMessage();
103+
const router = useRouter();
102104

103105
const defaultTableColumns: WfoAdvancedTableColumnConfig<ProcessListItem> = {
104106
workflowName: {
@@ -153,14 +155,12 @@ export const WfoProcessesList = ({
153155
columnType: ColumnType.DATA,
154156
label: t('subscriptions'),
155157
width: '425px',
156-
renderData: ({ page: subscriptions }) => (
158+
renderData: ({ page: subscriptions }, { processId }) => (
157159
<WfoProcessListSubscriptionsCell
158160
subscriptions={subscriptions}
159161
numberOfSubscriptionsToRender={1}
160162
onMoreSubscriptionsClick={() =>
161-
console.log('Show modal for more subscriptions:', {
162-
subscriptions,
163-
})
163+
router.push(`${PATH_WORKFLOWS}/${processId}`)
164164
}
165165
/>
166166
),

0 commit comments

Comments
 (0)