From 873bb613bc2deb86a4266bac160d14be265f9609 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 11 Jan 2021 21:34:57 +0800 Subject: ... --- .../timeline-common/TimelinePageTemplateUI.tsx | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplateUI.tsx') diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplateUI.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplateUI.tsx index b2824c84..41246175 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplateUI.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplateUI.tsx @@ -29,7 +29,7 @@ export interface TimelinePageTemplateUIProps { data?: | { timeline: TimelineInfo; - posts?: TimelinePostInfoEx[]; + posts?: TimelinePostInfoEx[] | "forbid"; operations: { onManage?: (item: TManageItems | "property") => void; onMember: () => void; @@ -166,16 +166,20 @@ export default function TimelinePageTemplateUI( /> ) : null} {posts != null ? ( -
- -
+ posts === "forbid" ? ( +
{t("timeline.messageCantSee")}
+ ) : ( +
+ +
+ ) ) : (
-- cgit v1.2.3