fix header auth formatting

This commit is contained in:
miloschwartz
2025-10-13 14:39:41 -07:00
parent 0c63ea1f50
commit 2c99cfacc0
2 changed files with 9 additions and 8 deletions

View File

@@ -1745,9 +1745,10 @@
"resourceHeaderAuthRemoveDescription": "Header authentication removed successfully.", "resourceHeaderAuthRemoveDescription": "Header authentication removed successfully.",
"resourceErrorHeaderAuthRemove": "Failed to remove Header Authentication", "resourceErrorHeaderAuthRemove": "Failed to remove Header Authentication",
"resourceErrorHeaderAuthRemoveDescription": "Could not remove header authentication for the resource.", "resourceErrorHeaderAuthRemoveDescription": "Could not remove header authentication for the resource.",
"resourceHeaderAuthProtection": "Header Authentication Protection: {{status}}", "resourceHeaderAuthProtectionEnabled": "Header Authentication Enabled",
"headerAuthRemove": "Remove", "resourceHeaderAuthProtectionDisabled": "Header Authentication Disabled",
"headerAuthAdd": "Add", "headerAuthRemove": "Remove Header Auth",
"headerAuthAdd": "Add Header Auth",
"resourceErrorHeaderAuthSetup": "Failed to set Header Authentication", "resourceErrorHeaderAuthSetup": "Failed to set Header Authentication",
"resourceErrorHeaderAuthSetupDescription": "Could not set header authentication for the resource.", "resourceErrorHeaderAuthSetupDescription": "Could not set header authentication for the resource.",
"resourceHeaderAuthSetup": "Header Authentication set successfully", "resourceHeaderAuthSetup": "Header Authentication set successfully",

View File

@@ -836,11 +836,11 @@ export default function ResourceAuthenticationPage() {
> >
<Bot size="14" /> <Bot size="14" />
<span> <span>
{t("resourceHeaderAuthProtection", { {authInfo.headerAuth
status: authInfo.headerAuth ? t("resourceHeaderAuthProtection")
? t("enabled") : t(
: t("disabled") "resourceHeaderAuthProtectionDisabled"
})} )}
</span> </span>
</div> </div>
<Button <Button