- Notifications
You must be signed in to change notification settings - Fork928
feat(site): display version message#8435
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
5bc48df
42643b6
3936a13
3496e4d
e01ac01
273061a
ebd8e0d
5904c6d
9cdce40
46ac0d6
434cf2b
4fff5e2
4d610e1
e4196c4
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -91,7 +91,8 @@ UPDATE | ||
SET | ||
template_id = $2, | ||
updated_at = $3, | ||
name = $4, | ||
message = $5 | ||
WHERE | ||
id = $1 RETURNING *; | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -32,10 +32,12 @@ export const PublishTemplateVersionDialog: FC< | ||
const form = useFormik({ | ||
initialValues: { | ||
name: defaultName, | ||
message: "", | ||
isActiveVersion: false, | ||
}, | ||
validationSchema: Yup.object({ | ||
name: Yup.string().required(), | ||
message: Yup.string(), | ||
isActiveVersion: Yup.boolean(), | ||
}), | ||
onSubmit: onConfirm, | ||
@@ -70,6 +72,16 @@ export const PublishTemplateVersionDialog: FC< | ||
disabled={isPublishing} | ||
/> | ||
<TextField | ||
{...getFieldHelpers("message")} | ||
label="Message" | ||
placeholder="Write a short message about the changes you made..." | ||
autoFocus | ||
disabled={isPublishing} | ||
multiline | ||
rows={5} | ||
BrunoQuaresma marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
/> | ||
<FormControlLabel | ||
label="Promote to default version" | ||
control={ | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.