diff --git a/web/public/locales/en/translation.json b/web/public/locales/en/translation.json
index bb88f3cca5..7e9e46f168 100644
--- a/web/public/locales/en/translation.json
+++ b/web/public/locales/en/translation.json
@@ -499,7 +499,8 @@
"AddMore": "Add More",
"Save": "Save",
"Recommended": "Recommended Template",
- "confirm": "If there are missing dependencies, the application will be automatically restarted. Are you sure you want to use this template?"
+ "Confirm": "If there are missing dependencies, the application will be automatically restarted. Are you sure you want to use this template?",
+ "ConfirmDeleteTemplate": "Are you sure you want to delete this function template?"
},
"Create function template success": "Create function template successfully",
"Publish": "release",
@@ -509,4 +510,4 @@
"DaysAgo": " Days Ago",
"WeeksAgo": " Weeks Ago",
"MonthsAgo": " Months Ago"
-}
+}
\ No newline at end of file
diff --git a/web/public/locales/zh-CN/translation.json b/web/public/locales/zh-CN/translation.json
index fffd4a1935..e0853aee9c 100644
--- a/web/public/locales/zh-CN/translation.json
+++ b/web/public/locales/zh-CN/translation.json
@@ -478,7 +478,8 @@
"AddMore": "继续添加",
"Save": "保存",
"Recommended": "推荐模板",
- "confirm": "如果存在依赖包未安装,将会自动重启应用,确定使用该模板吗?"
+ "Confirm": "如果存在依赖包未安装,将会自动重启应用,确定使用该模板吗?",
+ "ConfirmDeleteTemplate": "确定删除模板吗"
},
"Fee": "费用",
"PleaseCloseApplicationFirst": "请先关闭应用",
@@ -509,4 +510,4 @@
"DaysAgo": " 天前",
"MonthsAgo": " 月前",
"WeeksAgo": " 周前"
-}
+}
\ No newline at end of file
diff --git a/web/public/locales/zh/translation.json b/web/public/locales/zh/translation.json
index dbcd541221..73d3ed0c51 100644
--- a/web/public/locales/zh/translation.json
+++ b/web/public/locales/zh/translation.json
@@ -478,7 +478,8 @@
"AddMore": "继续添加",
"Save": "保存",
"Recommended": "推荐模板",
- "confirm": "如果存在依赖包未安装,将会自动重启应用,确定使用该模板吗?"
+ "Confirm": "如果存在依赖包未安装,将会自动重启应用,确定使用该模板吗?",
+ "ConfirmDeleteTemplate": "确定删除模板吗"
},
"Fee": "费用",
"PleaseCloseApplicationFirst": "请先关闭应用",
@@ -509,4 +510,4 @@
"DaysAgo": " 天前",
"MonthsAgo": " 月前",
"WeeksAgo": " 周前"
-}
+}
\ No newline at end of file
diff --git a/web/src/App.css b/web/src/App.css
index 62f0540e1a..6a4d9329c9 100644
--- a/web/src/App.css
+++ b/web/src/App.css
@@ -71,8 +71,3 @@ a {
background: black;
}
}
-
-.chakra-portal {
- position: relative;
- z-index: 9999;
-}
\ No newline at end of file
diff --git a/web/src/layouts/Template.tsx b/web/src/layouts/Template.tsx
index efbc0be939..3ecfb88e0e 100644
--- a/web/src/layouts/Template.tsx
+++ b/web/src/layouts/Template.tsx
@@ -18,21 +18,30 @@ export default function TemplateLayout() {
}, [init]);
return (
-
-
+ <>
+
-
-
- {loading ? (
-
-
-
- ) : (
-
- )}
+
+
+
+
+
+ {loading ? (
+
+
+
+ ) : (
+
+ )}
+
-
+ >
);
}
diff --git a/web/src/pages/app/functions/mods/FunctionPanel/FunctionTemplate/index.tsx b/web/src/pages/app/functions/mods/FunctionPanel/FunctionTemplate/index.tsx
index ee5f86adb5..dd4f9cae89 100644
--- a/web/src/pages/app/functions/mods/FunctionPanel/FunctionTemplate/index.tsx
+++ b/web/src/pages/app/functions/mods/FunctionPanel/FunctionTemplate/index.tsx
@@ -36,7 +36,7 @@ const FuncTemplate = (props: { children?: React.ReactElement }) => {
-
+
{t("HomePage.NavBar.funcTemplate")}
diff --git a/web/src/pages/functionTemplate/CreateFuncTemplate/index.tsx b/web/src/pages/functionTemplate/CreateFuncTemplate/index.tsx
index 0e4388d034..9788849f10 100644
--- a/web/src/pages/functionTemplate/CreateFuncTemplate/index.tsx
+++ b/web/src/pages/functionTemplate/CreateFuncTemplate/index.tsx
@@ -7,6 +7,7 @@ import { Box, Button, Radio, RadioGroup, useColorMode } from "@chakra-ui/react";
import clsx from "clsx";
import { TextIcon } from "@/components/CommonIcon";
+import ConfirmButton from "@/components/ConfirmButton";
import FileTypeIcon from "@/components/FileTypeIcon";
import {
@@ -145,9 +146,14 @@ export default function CreateFuncTemplate() {
return (
-
- {t("Template.MyTemplate")}
-
+
{
+ navigate(-1);
+ }}
+ >
+ {t("HomePage.NavBar.funcTemplate")}
+
@@ -273,17 +279,19 @@ export default function CreateFuncTemplate() {
{isEdit && (
-
+
+
)}