8000 feat: rich parameters: introduce display_name by mtojek · Pull Request #6919 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: rich parameters: introduce display_name #6919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fmt
  • Loading branch information
mtojek committed Apr 3, 2023
commit 99872e193d2d377a73e1cc6a1e6f97b070e8027e
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export interface ParameterLabelProps {
const ParameterLabel: FC<ParameterLabelProps> = ({ id, parameter }) => {
const styles = useStyles()
const hasDescription = parameter.description && parameter.description !== ""
const displayName = parameter.display_name ? parameter.display_name : parameter.name
const displayName = parameter.display_name
? parameter.display_name
: parameter.name

return (
<label htmlFor={id}>
Expand Down
0