From a22a4b6e74efee1961ce9df03dea03333182e62c Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Wed, 11 Mar 2026 03:47:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20mark=20forms=20as=20readon?= =?UTF-8?q?ly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EditPolicyAuthMethodsSectionForm.tsx | 6 +++- .../EditPolicyOtpEmailSectionForm.tsx | 6 +++- .../EditPolicyRulesSectionForm.tsx | 34 +++++++++++++++---- 3 files changed, 38 insertions(+), 8 deletions(-) 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("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("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("resourcePolicyRulesEmpty")}

+
)}
@@ -757,7 +761,10 @@ export function EditPolicyRulesSectionForm({ ) : ( - + )}