mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 23:27:35 +00:00
misc: added support for copying gateway ID
This commit is contained in:
@@ -3,6 +3,7 @@ import { Helmet } from "react-helmet";
|
|||||||
import {
|
import {
|
||||||
faArrowUpRightFromSquare,
|
faArrowUpRightFromSquare,
|
||||||
faBookOpen,
|
faBookOpen,
|
||||||
|
faCopy,
|
||||||
faEdit,
|
faEdit,
|
||||||
faEllipsisV,
|
faEllipsisV,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
@@ -169,6 +170,12 @@ export const GatewayListPage = withPermission(
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end">
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuItem
|
||||||
|
icon={<FontAwesomeIcon icon={faCopy} />}
|
||||||
|
onClick={() => navigator.clipboard.writeText(el.id)}
|
||||||
|
>
|
||||||
|
Copy ID
|
||||||
|
</DropdownMenuItem>
|
||||||
<OrgPermissionCan
|
<OrgPermissionCan
|
||||||
I={OrgGatewayPermissionActions.EditGateways}
|
I={OrgGatewayPermissionActions.EditGateways}
|
||||||
a={OrgPermissionSubjects.Gateway}
|
a={OrgPermissionSubjects.Gateway}
|
||||||
|
|||||||
Reference in New Issue
Block a user