mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Save -> Create on several form dialogs
This commit is contained in:
parent
c1f7bec6c7
commit
003591e2ae
@ -56,7 +56,7 @@ function CreateDialog(props: {
|
||||
onOpenChange={props.onOpenChange}
|
||||
title="Create Permission"
|
||||
formSchema={formSchema}
|
||||
okButton={{ label: "Save" }}
|
||||
okButton={{ label: "Create" }}
|
||||
onSubmit={async (values) => {
|
||||
await stackAdminApp.createPermissionDefinition({
|
||||
id: values.id,
|
||||
|
||||
@ -49,7 +49,7 @@ function CreateDialog({ open, onOpenChange }: CreateDialogProps) {
|
||||
onOpenChange={onOpenChange}
|
||||
title="Create a Team"
|
||||
formSchema={formSchema}
|
||||
okButton={{ label: "Save" }}
|
||||
okButton={{ label: "Create" }}
|
||||
onSubmit={async (values) => {
|
||||
await stackAdminApp.createTeam({
|
||||
displayName: values.displayName,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user