Save -> Create on several form dialogs

This commit is contained in:
Stan Wohlwend 2024-06-02 15:21:21 +02:00
parent c1f7bec6c7
commit 003591e2ae
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,