diff --git a/src/components/resource-policy/EditPolicyAuthMethodsSectionForm.tsx b/src/components/resource-policy/EditPolicyAuthMethodsSectionForm.tsx index f739a737b..034a1ca78 100644 --- a/src/components/resource-policy/EditPolicyAuthMethodsSectionForm.tsx +++ b/src/components/resource-policy/EditPolicyAuthMethodsSectionForm.tsx @@ -242,7 +242,7 @@ export function EditPolicyAuthMethodsSectionForm({ - {!readonly && ( + {!readonly ? ( {t("resourcePolicyAuthMethodAdd")} + ) : ( + + {t("resourcePolicyAuthMethodsEmpty")} + )} diff --git a/src/components/resource-policy/EditPolicyOtpEmailSectionForm.tsx b/src/components/resource-policy/EditPolicyOtpEmailSectionForm.tsx index cb9b92a6b..af6edd2ce 100644 --- a/src/components/resource-policy/EditPolicyOtpEmailSectionForm.tsx +++ b/src/components/resource-policy/EditPolicyOtpEmailSectionForm.tsx @@ -144,7 +144,7 @@ export function EditPolicyOtpEmailSectionForm({ - {!readonly && ( + {!readonly ? ( {t("resourcePolicyOtpEmailAdd")} + ) : ( + + {t("resourcePolicyOtpEmpty")} + )} diff --git a/src/components/resource-policy/EditPolicyRulesSectionForm.tsx b/src/components/resource-policy/EditPolicyRulesSectionForm.tsx index e034f0d59..48e0ef605 100644 --- a/src/components/resource-policy/EditPolicyRulesSectionForm.tsx +++ b/src/components/resource-policy/EditPolicyRulesSectionForm.tsx @@ -701,7 +701,7 @@ export function EditPolicyRulesSectionForm({ - {!readonly && ( + {!readonly ? ( {t("resourcePolicyRulesAdd")} + ) : ( + + {t("resourcePolicyRulesEmpty")} + )} @@ -757,7 +761,10 @@ export function EditPolicyRulesSectionForm({ ) : ( - + )}
{t("resourcePolicyAuthMethodsEmpty")}
{t("resourcePolicyOtpEmpty")}
{t("resourcePolicyRulesEmpty")}