aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline/index.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 16:35:39 +0800
committercrupest <crupest@outlook.com>2021-02-13 16:35:39 +0800
commitaeed3cb80d8c0a62d0ccc565733c4a213759c5bd (patch)
treefd00577d63c396bcbbd72a31d2f2aeda2fff6218 /FrontEnd/src/app/views/timeline/index.tsx
parent8211994b7175f2ad04663abc0c2605eb96143841 (diff)
downloadtimeline-aeed3cb80d8c0a62d0ccc565733c4a213759c5bd.tar.gz
timeline-aeed3cb80d8c0a62d0ccc565733c4a213759c5bd.tar.bz2
timeline-aeed3cb80d8c0a62d0ccc565733c4a213759c5bd.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline/index.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline/index.tsx5
1 files changed, 4 insertions, 1 deletions
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}
</>