diff --git a/src-docs/src/views/tables/actions/actions.tsx b/src-docs/src/views/tables/actions/actions.tsx index a233c872ac19..c446b75a0864 100644 --- a/src-docs/src/views/tables/actions/actions.tsx +++ b/src-docs/src/views/tables/actions/actions.tsx @@ -183,13 +183,14 @@ export default () => { } else { let actions: Array> = [ { - name: 'Elastic.co', - description: 'Go to elastic.co', + name: 'User profile', + description: ({ firstName, lastName }) => + `Visit ${firstName} ${lastName}'s profile`, icon: 'editorLink', color: 'primary', type: 'icon', - href: 'https://elastic.co', - target: '_blank', + href: ({ id }) => `${window.location.href}?id=${id}`, + target: '_self', 'data-test-subj': 'action-outboundlink', }, ]; @@ -205,13 +206,14 @@ export default () => { }, { name: (user: User) => (user.id ? 'Delete' : 'Remove'), - description: 'Delete this user', + description: ({ firstName, lastName }) => + `Delete ${firstName} ${lastName}`, icon: 'trash', color: 'danger', type: 'icon', onClick: deleteUser, isPrimary: true, - 'data-test-subj': 'action-delete', + 'data-test-subj': ({ id }) => `action-delete-${id}`, }, { name: 'Edit',