Merge pull request #454 from mpcref/patch-2

Corrected language for creating applications from a template
This commit is contained in:
Mauricio Siu
2024-09-16 13:07:43 -06:00
committed by GitHub

View File

@@ -89,9 +89,9 @@ export const AddTemplate = ({ projectId }: Props) => {
<DialogContent className="max-h-screen overflow-y-auto sm:max-w-7xl p-0"> <DialogContent className="max-h-screen overflow-y-auto sm:max-w-7xl p-0">
<div className="sticky top-0 z-10 flex flex-col gap-4 bg-background p-6 border-b"> <div className="sticky top-0 z-10 flex flex-col gap-4 bg-background p-6 border-b">
<DialogHeader> <DialogHeader>
<DialogTitle>Create Template</DialogTitle> <DialogTitle>Create from Template</DialogTitle>
<DialogDescription> <DialogDescription>
Deploy a open source template to your project Create an open source application from a template
</DialogDescription> </DialogDescription>
</DialogHeader> </DialogHeader>
{isError && <AlertBlock type="error">{error?.message}</AlertBlock>} {isError && <AlertBlock type="error">{error?.message}</AlertBlock>}
@@ -255,7 +255,7 @@ export const AddTemplate = ({ projectId }: Props) => {
<AlertDialog> <AlertDialog>
<AlertDialogTrigger asChild> <AlertDialogTrigger asChild>
<Button onSelect={(e) => e.preventDefault()}> <Button onSelect={(e) => e.preventDefault()}>
Deploy Create
</Button> </Button>
</AlertDialogTrigger> </AlertDialogTrigger>
<AlertDialogContent> <AlertDialogContent>
@@ -264,8 +264,9 @@ export const AddTemplate = ({ projectId }: Props) => {
Are you absolutely sure? Are you absolutely sure?
</AlertDialogTitle> </AlertDialogTitle>
<AlertDialogDescription> <AlertDialogDescription>
This will deploy {template.name} template to This will create an application from the{" "}
your project. {template.name} template and add it to your
project.
</AlertDialogDescription> </AlertDialogDescription>
</AlertDialogHeader> </AlertDialogHeader>
<AlertDialogFooter> <AlertDialogFooter>
@@ -278,7 +279,7 @@ export const AddTemplate = ({ projectId }: Props) => {
}) })
.then(async () => { .then(async () => {
toast.success( toast.success(
`${template.name} template created succesfully`, `Succesfully created ${template.name} application from template`,
); );
utils.project.one.invalidate({ utils.project.one.invalidate({
@@ -288,7 +289,7 @@ export const AddTemplate = ({ projectId }: Props) => {
}) })
.catch(() => { .catch(() => {
toast.error( toast.error(
`Error to delete ${template.name} template`, `Error creating ${template.name} application from template`,
); );
}); });
}} }}