mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 07:35:09 +00:00
truncation and UI tweaks
This commit is contained in:
+25
-3
@@ -1,4 +1,5 @@
|
||||
import { GenericFieldLabel } from "@app/components/secret-syncs";
|
||||
import { Tooltip } from "@app/components/v2";
|
||||
import { TOCIVaultSync } from "@app/hooks/api/secretSyncs/types/oci-vault-sync";
|
||||
|
||||
type Props = {
|
||||
@@ -12,9 +13,30 @@ export const OCIVaultSyncDestinationSection = ({ secretSync }: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<GenericFieldLabel label="Compartment OCID">{compartmentOcid}</GenericFieldLabel>
|
||||
<GenericFieldLabel label="Vault OCID">{vaultOcid}</GenericFieldLabel>
|
||||
<GenericFieldLabel label="Key OCID">{keyOcid}</GenericFieldLabel>
|
||||
<Tooltip side="bottom" className="max-w-sm select-text break-words" content={compartmentOcid}>
|
||||
<div>
|
||||
<GenericFieldLabel label="Compartment OCID">
|
||||
{compartmentOcid.substring(0, 21)}...
|
||||
{compartmentOcid.substring(compartmentOcid.length - 6)}
|
||||
</GenericFieldLabel>
|
||||
</div>
|
||||
</Tooltip>
|
||||
<Tooltip side="bottom" className="max-w-sm select-text break-words" content={compartmentOcid}>
|
||||
<div>
|
||||
<GenericFieldLabel label="Vault OCID">
|
||||
{vaultOcid.substring(0, 15)}...
|
||||
{vaultOcid.substring(vaultOcid.length - 6)}
|
||||
</GenericFieldLabel>
|
||||
</div>
|
||||
</Tooltip>
|
||||
<Tooltip side="bottom" className="max-w-sm select-text break-words" content={compartmentOcid}>
|
||||
<div>
|
||||
<GenericFieldLabel label="Key OCID">
|
||||
{keyOcid.substring(0, 13)}...
|
||||
{keyOcid.substring(keyOcid.length - 6)}
|
||||
</GenericFieldLabel>
|
||||
</div>
|
||||
</Tooltip>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user