Skip to content

web: use seconds in max TTL input #3576

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 5 commits into from
Aug 22, 2022
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
Next Next commit
Remove unecessary const
  • Loading branch information
BrunoQuaresma committed Aug 19, 2022
commit 78d8834058185cd540b17042cc337caa005848b3
3 changes: 1 addition & 2 deletions site/src/pages/TemplateSettingsPage/TemplateSettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
const getFieldHelpers = getFormHelpersWithError<UpdateTemplateMeta>(form, error)
const styles = useStyles()
const hasIcon = form.values.icon && form.values.icon !== ""
const maxTtlMsFieldHelpers = getFieldHelpers("max_ttl_ms")

return (
<form onSubmit={form.handleSubmit} aria-label={Language.formAriaLabel}>
Expand Down Expand Up @@ -106,7 +105,7 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
/>

<TextField
{...maxTtlMsFieldHelpers}
{...getFieldHelpers("max_ttl_ms")}
helperText={Language.maxTtlHelperText}
disabled={isSubmitting}
fullWidth
Expand Down