mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
small changes to placeholder and hint text in CA forms (#27372)
For #26606 small changes to digicert and custom scep forms placeholders and help text
This commit is contained in:
parent
aad329b0da
commit
c30d3ac03b
3 changed files with 9 additions and 6 deletions
|
|
@ -69,7 +69,10 @@ export const getDisplayErrMessage = (err: unknown) => {
|
|||
message = INVALID_API_TOKEN_ERROR;
|
||||
} else if (reason.includes("invalid profile GUID")) {
|
||||
message = INVALID_PROFILE_GUID_ERROR;
|
||||
} else if (reason.includes("invalid URL")) {
|
||||
} else if (
|
||||
reason.includes("invalid URL") ||
|
||||
reason.includes("no such host")
|
||||
) {
|
||||
message = INVALID_URL_ERROR;
|
||||
} else if (reason.includes("private key")) {
|
||||
message = PRIVATE_KEY_NOT_CONFIGURED_ERROR;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const CustomSCEPForm = ({
|
|||
config?.integrations.custom_scep_proxy ?? [],
|
||||
isEditing
|
||||
),
|
||||
[config?.integrations.custom_scep_proxy]
|
||||
[config?.integrations.custom_scep_proxy, isEditing]
|
||||
);
|
||||
const [
|
||||
formValidation,
|
||||
|
|
@ -83,8 +83,8 @@ const CustomSCEPForm = ({
|
|||
error={formValidation.name?.message}
|
||||
onChange={onInputChange}
|
||||
parseTarget
|
||||
placeholder="SCEP_WIFI"
|
||||
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CUSTOM_SCEP_CHALLENGE_SCEP_WIFI)."
|
||||
placeholder="WIFI_CERTIFICATE"
|
||||
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CUSTOM_SCEP_CHALLENGE_WIFI_CERTIFICATE)."
|
||||
/>
|
||||
<InputField
|
||||
label="SCEP URL"
|
||||
|
|
|
|||
|
|
@ -91,9 +91,9 @@ const DigicertForm = ({
|
|||
value={name}
|
||||
onChange={onInputChange}
|
||||
error={formValidation.name?.message}
|
||||
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_CERT_DATA_DIGICERT_WIFI)."
|
||||
helpText="Letters, numbers, and underscores only. Fleet will create configuration profile variables with the name as suffix (e.g. $FLEET_VAR_DIGICERT_DATA_WIFI_CERTIFICATE)."
|
||||
parseTarget
|
||||
placeholder="DIGICERT_WIFI"
|
||||
placeholder="WIFI_CERTIFICATE"
|
||||
/>
|
||||
<InputField
|
||||
name="url"
|
||||
|
|
|
|||
Loading…
Reference in a new issue