From aeed3cb80d8c0a62d0ccc565733c4a213759c5bd Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 13 Feb 2021 16:35:39 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline/index.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'FrontEnd/src/app/views/timeline/index.tsx')

diff --git a/FrontEnd/src/app/views/timeline/index.tsx b/FrontEnd/src/app/views/timeline/index.tsx
index 225a1a59..8048dd12 100644
--- a/FrontEnd/src/app/views/timeline/index.tsx
+++ b/FrontEnd/src/app/views/timeline/index.tsx
@@ -7,12 +7,13 @@ import TimelinePageUI from "./TimelinePageUI";
 import { OrdinaryTimelineManageItem } from "./TimelineInfoCard";
 import TimelineDeleteDialog from "./TimelineDeleteDialog";
 
-const TimelinePage: React.FC = (_) => {
+const TimelinePage: React.FC = () => {
   const { name } = useParams<{ name: string }>();
 
   const [dialog, setDialog] = React.useState<OrdinaryTimelineManageItem | null>(
     null
   );
+  const [reloadKey, setReloadKey] = React.useState<number>(0);
 
   let dialogElement: React.ReactElement | undefined;
   if (dialog === "delete") {
@@ -28,6 +29,8 @@ const TimelinePage: React.FC = (_) => {
         UiComponent={TimelinePageUI}
         onManage={(item) => setDialog(item)}
         notFoundI18nKey="timeline.timelineNotExist"
+        reloadKey={reloadKey}
+        onReload={() => setReloadKey(reloadKey + 1)}
       />
       {dialogElement}
     </>
-- 
cgit v1.2.3

