wizard: add ssh_key to review step

this commit add ssh_key to review step under Users
This commit is contained in:
Michal Gold 2025-01-09 15:11:40 +02:00 committed by Klara Simickova
parent 8996dcc092
commit 568b8c83cf

View file

@ -70,6 +70,7 @@ import {
selectHostname,
selectUserNameByIndex,
selectUserPasswordByIndex,
selectUserSshKeyByIndex,
} from '../../../../store/wizardSlice';
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
import {
@ -784,6 +785,8 @@ export const UsersList = () => {
const userName = useAppSelector(userNameSelector);
const userPasswordSelector = selectUserPasswordByIndex(index);
const userPassword = useAppSelector(userPasswordSelector);
const userSshKeySelector = selectUserSshKeyByIndex(index);
const userSshKey = useAppSelector(userSshKeySelector);
return (
<TextContent>
@ -807,6 +810,15 @@ export const UsersList = () => {
<TextListItem component={TextListItemVariants.dd}>
{userPassword ? userPassword : 'None'}
</TextListItem>
<TextListItem
component={TextListItemVariants.dt}
className="pf-v5-u-min-width"
>
SSH key
</TextListItem>
<TextListItem component={TextListItemVariants.dd}>
{userSshKey ? userSshKey : 'None'}
</TextListItem>
</>
</TextList>
</TextContent>