From 61891839d91f3aa142e9d7e4efb5778c4cad9cf5 Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Thu, 1 Aug 2024 11:06:10 +0200 Subject: [PATCH] added info in templates editor --- frontend/src/assets/i18n.yaml | 1 + frontend/src/components/TemplatesEditor.tsx | 8 +++- go.mod | 5 +-- go.sum | 46 +++++++-------------- 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/frontend/src/assets/i18n.yaml b/frontend/src/assets/i18n.yaml index d787cd2..0628f4c 100644 --- a/frontend/src/assets/i18n.yaml +++ b/frontend/src/assets/i18n.yaml @@ -53,6 +53,7 @@ languages: bulkDownload: 'Download files in a zip archive' rpcPollingTimeTitle: RPC polling time rpcPollingTimeDescription: A lower interval results in higher CPU usage (server and client side) + templatesReloadInfo: To register a new template it might need a page reload. german: urlInput: Video URL statusTitle: Status diff --git a/frontend/src/components/TemplatesEditor.tsx b/frontend/src/components/TemplatesEditor.tsx index cf2c5b5..f80bd6a 100644 --- a/frontend/src/components/TemplatesEditor.tsx +++ b/frontend/src/components/TemplatesEditor.tsx @@ -2,6 +2,7 @@ import AddIcon from '@mui/icons-material/Add' import CloseIcon from '@mui/icons-material/Close' import DeleteIcon from '@mui/icons-material/Delete' import { + Alert, AppBar, Backdrop, Box, @@ -145,7 +146,12 @@ const TemplatesEditor: React.FC = ({ open, onClose }) => { backgroundColor: (theme) => theme.palette.background.default, minHeight: (theme) => `calc(99vh - ${theme.mixins.toolbar.minHeight}px)` }}> - + + + + {i18n.t('templatesReloadInfo')} + +