From c1956a307db8d03797bfb1ebe153ca8f5805d9cc Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 8 Aug 2018 16:30:43 +0200 Subject: [PATCH] Make readonly and add translations --- .../PermalinkButton/PermalinkButton.tsx | 2 +- .../PermalinkButton/PermalinkPopover.tsx | 10 +++++-- .../stream/components/PermalinkView.tsx | 29 ++++++++++++------- src/locales/en-US/stream.ftl | 8 +++-- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/core/client/stream/components/PermalinkButton/PermalinkButton.tsx b/src/core/client/stream/components/PermalinkButton/PermalinkButton.tsx index 493625e2b..aedf477e5 100644 --- a/src/core/client/stream/components/PermalinkButton/PermalinkButton.tsx +++ b/src/core/client/stream/components/PermalinkButton/PermalinkButton.tsx @@ -60,7 +60,7 @@ class Permalink extends React.Component { share - + Share diff --git a/src/core/client/stream/components/PermalinkButton/PermalinkPopover.tsx b/src/core/client/stream/components/PermalinkButton/PermalinkPopover.tsx index 218bd78f6..9e7afcc9d 100644 --- a/src/core/client/stream/components/PermalinkButton/PermalinkPopover.tsx +++ b/src/core/client/stream/components/PermalinkButton/PermalinkPopover.tsx @@ -38,15 +38,19 @@ class PermalinkPopover extends React.Component { const { copied } = this.state; return ( - + + + + + )} + {!comment && ( + + Comment not found + )} - {!comment && Comment not found} {comment && ( diff --git a/src/locales/en-US/stream.ftl b/src/locales/en-US/stream.ftl index 08a397cc1..1ae160503 100644 --- a/src/locales/en-US/stream.ftl +++ b/src/locales/en-US/stream.ftl @@ -6,6 +6,8 @@ comments-postCommentForm-post = Post comments-stream-loadMore = Load more comments-replyList-showAll = Show all -comments-permalink-share = Share -comments-permalink-copy = Copy -comments-permalink-copied = Copied +comments-permalinkButton-share = Share +comments-permalinkPopover-copy = Copy +comments-permalinkPopover-copied = Copied +comments-permalinkView-showAllComments = Show all comments +comments-permalinkView-commentNotFound = Comment not found