mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
show errors for restricted team names, "all teams" and "no team" (#22043)
relates to #21971 Show error messages when trying to create a team called "All teams" and "no team" **all teams error:**  **no team error:**  - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
4c24729df0
commit
3599c2b49a
1 changed files with 2 additions and 2 deletions
|
|
@ -116,11 +116,11 @@ const TeamManagementPage = (): JSX.Element => {
|
|||
setBackendValidators({
|
||||
name: "A team with this name already exists",
|
||||
});
|
||||
} else if (createError.data.errors[0].reason.includes("all teams")) {
|
||||
} else if (createError.data.errors[0].reason.includes("All teams")) {
|
||||
setBackendValidators({
|
||||
name: `"All teams" is a reserved team name. Please try another name.`,
|
||||
});
|
||||
} else if (createError.data.errors[0].reason.includes("no team")) {
|
||||
} else if (createError.data.errors[0].reason.includes("No team")) {
|
||||
setBackendValidators({
|
||||
name: `"No team" is a reserved team name. Please try another name.`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue