mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 21:27:31 +00:00
misc: update tooltip for overwrite sync
This commit is contained in:
+4
-2
@@ -23,6 +23,7 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {
|
|||||||
const { control, watch } = useFormContext<TSecretSyncForm>();
|
const { control, watch } = useFormContext<TSecretSyncForm>();
|
||||||
|
|
||||||
const destination = watch("destination");
|
const destination = watch("destination");
|
||||||
|
const currentSyncOption = watch("syncOptions");
|
||||||
|
|
||||||
const destinationName = SECRET_SYNC_MAP[destination].name;
|
const destinationName = SECRET_SYNC_MAP[destination].name;
|
||||||
|
|
||||||
@@ -127,8 +128,9 @@ export const SecretSyncOptionsFields = ({ hideInitialSync }: Props) => {
|
|||||||
{!syncOption?.canImportSecrets && (
|
{!syncOption?.canImportSecrets && (
|
||||||
<p className="-mt-2.5 mb-2.5 text-xs text-yellow">
|
<p className="-mt-2.5 mb-2.5 text-xs text-yellow">
|
||||||
<FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />
|
<FontAwesomeIcon className="mr-1" size="xs" icon={faTriangleExclamation} />
|
||||||
{destinationName} only supports overwriting destination secrets. Secrets not present
|
{destinationName} only supports overwriting destination secrets.{" "}
|
||||||
in Infisical will be removed from the destination.
|
{!currentSyncOption.disableSecretDeletion &&
|
||||||
|
"Secrets not present in Infisical will be removed from the destination."}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user