From 1946427833562d2cf52b4229a6eec497869da387 Mon Sep 17 00:00:00 2001
From: siddhantCodes <siddhantk232@gmail.com>
Date: Mon, 2 Dec 2024 22:57:50 +0530
Subject: [PATCH] Show "Re-validate domain" on "failed" status also

---
 components/sites/site-domain-info.ftd | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/sites/site-domain-info.ftd b/components/sites/site-domain-info.ftd
index 41e73d62..d43cb93d 100644
--- a/components/sites/site-domain-info.ftd
+++ b/components/sites/site-domain-info.ftd
@@ -106,7 +106,7 @@ margin: $ds.spaces.vertical-gap.zero
 				height: fill-container
 				
 					-- ds.secondary-button: Re-validate domain
-					if: { show-site-domain.domain.status == "pending" }
+					if: { show-site-domain.domain.status == "pending" || show-site-domain.domain.status == "failed" }
 					variant: outline
 					radius: curved
 					$on-click$: $show-site-domain.re-check-domain.submit(site_slug=$show-site-domain.site.site-slug, domain=$show-site-domain.domain.domain)
@@ -129,7 +129,7 @@ margin: $ds.spaces.vertical-gap.zero
 				width.fixed.percent: 40
 				
 					-- ds.secondary-button: Re-validate domain
-					if: { $show-site-domain.domain.status == "pending" }
+					if: { show-site-domain.domain.status == "pending" || show-site-domain.domain.status == "failed" }
 					variant: outline
 					radius: curved
 					$on-click$: $show-site-domain.re-check-domain.submit(site_slug=$show-site-domain.site.site-slug, domain=$show-site-domain.domain.domain)
@@ -244,7 +244,7 @@ margin: $ds.spaces.vertical-gap.zero
 			height: fill-container
 			
 				-- ds.secondary-button: Re-validate domain
-				if: { show-site-domain.domain.status == "pending" }
+                if: { show-site-domain.domain.status == "pending" || show-site-domain.domain.status == "failed" }
 				variant: outline
 				radius: curved
 				$on-click$: $show-site-domain.re-check-domain.submit(site_slug=$show-site-domain.site.site-slug, domain=$show-site-domain.domain.domain)
@@ -264,7 +264,7 @@ margin: $ds.spaces.vertical-gap.zero
 			   spacing: $ds.spaces.vertical-gap.medium
 			
 				-- ds.secondary-button: Re-validate domain
-				if: { $show-site-domain.domain.status == "pending" }
+                if: { show-site-domain.domain.status == "pending" || show-site-domain.domain.status == "failed" }
 				variant: outline
 				radius: curved
 				$on-click$: $show-site-domain.re-check-domain.submit(site_slug=$show-site-domain.site.site-slug, domain=$show-site-domain.domain.domain)