From df9d4d2f38a1837ee73a49f7f518a03398c14a0a Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Fri, 30 Jun 2023 15:19:36 +0800 Subject: [PATCH] feat: auto sync after created --- datacenter/app/datastores/documents/page.tsx | 55 +++++++++++++++++ datacenter/app/datastores/page.tsx | 62 +++++++++++++++++++- 2 files changed, 115 insertions(+), 2 deletions(-) diff --git a/datacenter/app/datastores/documents/page.tsx b/datacenter/app/datastores/documents/page.tsx index 02f2126d6..4936a2556 100644 --- a/datacenter/app/datastores/documents/page.tsx +++ b/datacenter/app/datastores/documents/page.tsx @@ -13,6 +13,8 @@ import { Input, Textarea, Chip, + Switch, + Typography, styled } from '@/lib/mui' import moment from 'moment' @@ -72,6 +74,7 @@ const Documents = () => { const [originFileObj, setOriginFileObj] = useState(null) const [total, setTotal] = useState(0) const [current, setCurrent] = useState(0) + const [synchChecked, setSynchChecked] = useState(true) const props: UploadProps = { name: 'file', multiple: false, @@ -422,6 +425,22 @@ const Documents = () => { /> )} + + setSynchChecked(event.target.checked) + } + /> + } + > + Synch: +