Fixed the strict evaluation and text of the button.

This commit is contained in:
Owaise Imdad
2025-05-04 00:16:08 +05:30
parent 5d6ae745f4
commit 712fd0a56f
2 changed files with 3 additions and 4 deletions

View File

@@ -118,16 +118,15 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false, show
>
Let's create your first {title}
</Button>
{/* Bulk create of uptime monitors */}
{title == "uptime monitor" && (
{title === "uptime monitor" && (
<Button
variant="contained"
color="accent"
sx={{ alignSelf: "center" }}
onClick={() => navigate("/uptime/bulk-import")}
>
{t("bulkImport.fallbackPage")} {title}
{t("bulkImport.fallbackPage")}
</Button>
)}

View File

@@ -409,6 +409,6 @@
"uploadSuccess": "Monitors created successfully!",
"validationFailed": "Validation failed",
"noFileSelected": "No file selected",
"fallbackPage": "Click here for bulk"
"fallbackPage": "Import a file to upload a list of servers in bulk"
}
}