mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: include a link and more useful error details for 403 response codes (#16644)
Currently if a user gets to a page they don't have permission to view they're greeted with a vague error alert and no actionable items. This PR adds a link back to _/workspaces_ within the alert as well as more helpful error details. Before:  After: 
This commit is contained in:
@ -19,18 +19,7 @@ import {
|
||||
onChangeTrimmed,
|
||||
} from "utils/formUtils";
|
||||
import * as Yup from "yup";
|
||||
|
||||
export const Language = {
|
||||
emailLabel: "Email",
|
||||
passwordLabel: "Password",
|
||||
usernameLabel: "Username",
|
||||
nameLabel: "Full name",
|
||||
emailInvalid: "Please enter a valid email address.",
|
||||
emailRequired: "Please enter an email address.",
|
||||
passwordRequired: "Please enter a password.",
|
||||
createUser: "Create",
|
||||
cancel: "Cancel",
|
||||
};
|
||||
import { Language } from "./Language";
|
||||
|
||||
export const authMethodLanguage = {
|
||||
password: {
|
||||
|
Reference in New Issue
Block a user