mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
Add groups to ssh hosts allowed principals fix delete principal row issue
This commit is contained in:
@@ -412,7 +412,7 @@ export const SshHostModal = ({ popUp, handlePopUpToggle }: Props) => {
|
|||||||
<div className="flex flex-col space-y-2">
|
<div className="flex flex-col space-y-2">
|
||||||
{value.map((principal, principalIndex) => (
|
{value.map((principal, principalIndex) => (
|
||||||
<div
|
<div
|
||||||
key={`${metadataFieldId}-principal-${principalIndex + 1}`}
|
key={`principal-${i + 1}-${principalIndex + 1}-${principal.type}`}
|
||||||
className="flex items-center space-x-2"
|
className="flex items-center space-x-2"
|
||||||
>
|
>
|
||||||
<div className="mr-2">
|
<div className="mr-2">
|
||||||
@@ -482,7 +482,7 @@ export const SshHostModal = ({ popUp, handlePopUpToggle }: Props) => {
|
|||||||
const newPrincipals = value.filter(
|
const newPrincipals = value.filter(
|
||||||
(_, idx) => idx !== principalIndex
|
(_, idx) => idx !== principalIndex
|
||||||
);
|
);
|
||||||
onChange(newPrincipals);
|
onChange([...newPrincipals]);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faTrash} />
|
<FontAwesomeIcon icon={faTrash} />
|
||||||
|
|||||||
Reference in New Issue
Block a user