From d5104bf6f8b813da8db8efd093743568e81b543d Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Thu, 16 Jun 2022 23:34:06 +0200 Subject: [PATCH] Allowing toot to be copied when highlighted --- src/components/Timeline/Default.tsx | 1 + src/components/Timeline/Notifications.tsx | 6 +++++- src/components/Timeline/Shared/ContextMenu.tsx | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/Timeline/Default.tsx b/src/components/Timeline/Default.tsx index 6c84aec3..d72e427c 100644 --- a/src/components/Timeline/Default.tsx +++ b/src/components/Timeline/Default.tsx @@ -78,6 +78,7 @@ const TimelineDefault: React.FC = ({ status={actualStatus} queryKey={queryKey} rootQueryKey={rootQueryKey} + disabled={highlighted} > + ([]) @@ -23,6 +24,7 @@ const TimelineContextMenu: React.FC = ({ status, queryKey, rootQueryKey, + disabled, ...props }) => { if (!status || !queryKey) { @@ -59,7 +61,9 @@ const TimelineContextMenu: React.FC = ({ rootQueryKey }) - return ( + return disabled ? ( + <>{children} + ) : (