From 12c263c1ce4bc103009f94042397207136a4e5e1 Mon Sep 17 00:00:00 2001 From: Michiel Crefcoeur Date: Mon, 16 Sep 2024 07:58:34 -0700 Subject: [PATCH 1/3] Corrected language for creating applications from a template The UI used the word "Deploy" while actually it's creating a new application from a template and adding it to the project. I fixed some of the language to better reflect what it does. --- .../components/dashboard/project/add-template.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/dokploy/components/dashboard/project/add-template.tsx b/apps/dokploy/components/dashboard/project/add-template.tsx index 28f85414..a9d13f6c 100644 --- a/apps/dokploy/components/dashboard/project/add-template.tsx +++ b/apps/dokploy/components/dashboard/project/add-template.tsx @@ -89,9 +89,9 @@ export const AddTemplate = ({ projectId }: Props) => {
- Create Template + Create from Template - Deploy a open source template to your project + Create an open source application from a template {isError && {error?.message}} @@ -255,7 +255,7 @@ export const AddTemplate = ({ projectId }: Props) => { @@ -264,8 +264,8 @@ export const AddTemplate = ({ projectId }: Props) => { Are you absolutely sure? - This will deploy {template.name} template to - your project. + This will create an application from the {template.name} + template and add it to your project. @@ -278,7 +278,7 @@ export const AddTemplate = ({ projectId }: Props) => { }) .then(async () => { toast.success( - `${template.name} template created succesfully`, + `Succesfully created ${template.name} application from template`, ); utils.project.one.invalidate({ @@ -288,7 +288,7 @@ export const AddTemplate = ({ projectId }: Props) => { }) .catch(() => { toast.error( - `Error to delete ${template.name} template`, + `Error creating ${template.name} application from template`, ); }); }} From 5b5aeb545a5c29063b13e3397fb59f29b8932135 Mon Sep 17 00:00:00 2001 From: Michiel Crefcoeur Date: Mon, 16 Sep 2024 09:40:53 -0700 Subject: [PATCH 2/3] Satisfy CI? --- apps/dokploy/components/dashboard/project/add-template.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/project/add-template.tsx b/apps/dokploy/components/dashboard/project/add-template.tsx index a9d13f6c..2467f91f 100644 --- a/apps/dokploy/components/dashboard/project/add-template.tsx +++ b/apps/dokploy/components/dashboard/project/add-template.tsx @@ -264,8 +264,7 @@ export const AddTemplate = ({ projectId }: Props) => { Are you absolutely sure? - This will create an application from the {template.name} - template and add it to your project. + This will create an application from the {template.name} template and add it to your project. From 66567c8f2bac48235456c4943babcd70689f4f39 Mon Sep 17 00:00:00 2001 From: Michiel Crefcoeur Date: Mon, 16 Sep 2024 18:45:22 +0000 Subject: [PATCH 3/3] obey formatting even though it looks weird --- apps/dokploy/components/dashboard/project/add-template.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/project/add-template.tsx b/apps/dokploy/components/dashboard/project/add-template.tsx index 2467f91f..1bc78f48 100644 --- a/apps/dokploy/components/dashboard/project/add-template.tsx +++ b/apps/dokploy/components/dashboard/project/add-template.tsx @@ -264,7 +264,9 @@ export const AddTemplate = ({ projectId }: Props) => { Are you absolutely sure? - This will create an application from the {template.name} template and add it to your project. + This will create an application from the{" "} + {template.name} template and add it to your + project.