wizard: add ssh_key to review step
this commit add ssh_key to review step under Users
This commit is contained in:
parent
8996dcc092
commit
568b8c83cf
1 changed files with 12 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ import {
|
||||||
selectHostname,
|
selectHostname,
|
||||||
selectUserNameByIndex,
|
selectUserNameByIndex,
|
||||||
selectUserPasswordByIndex,
|
selectUserPasswordByIndex,
|
||||||
|
selectUserSshKeyByIndex,
|
||||||
} from '../../../../store/wizardSlice';
|
} from '../../../../store/wizardSlice';
|
||||||
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
||||||
import {
|
import {
|
||||||
|
|
@ -784,6 +785,8 @@ export const UsersList = () => {
|
||||||
const userName = useAppSelector(userNameSelector);
|
const userName = useAppSelector(userNameSelector);
|
||||||
const userPasswordSelector = selectUserPasswordByIndex(index);
|
const userPasswordSelector = selectUserPasswordByIndex(index);
|
||||||
const userPassword = useAppSelector(userPasswordSelector);
|
const userPassword = useAppSelector(userPasswordSelector);
|
||||||
|
const userSshKeySelector = selectUserSshKeyByIndex(index);
|
||||||
|
const userSshKey = useAppSelector(userSshKeySelector);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TextContent>
|
<TextContent>
|
||||||
|
|
@ -807,6 +810,15 @@ export const UsersList = () => {
|
||||||
<TextListItem component={TextListItemVariants.dd}>
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
{userPassword ? userPassword : 'None'}
|
{userPassword ? userPassword : 'None'}
|
||||||
</TextListItem>
|
</TextListItem>
|
||||||
|
<TextListItem
|
||||||
|
component={TextListItemVariants.dt}
|
||||||
|
className="pf-v5-u-min-width"
|
||||||
|
>
|
||||||
|
SSH key
|
||||||
|
</TextListItem>
|
||||||
|
<TextListItem component={TextListItemVariants.dd}>
|
||||||
|
{userSshKey ? userSshKey : 'None'}
|
||||||
|
</TextListItem>
|
||||||
</>
|
</>
|
||||||
</TextList>
|
</TextList>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue