From 20cce5fc39cb47eba2d7508ee094b0ea1b425374 Mon Sep 17 00:00:00 2001
From: 2458773093 <2458773093@protonmail.com>
Date: Wed, 18 Sep 2019 19:20:52 +0300
Subject: [PATCH] show edit indicator on detail page
---
.../status/components/detailed_status.js | 16 +++++++++++-----
.../gabsocial/features/status/index.js | 5 +++++
app/services/edit_status_service.rb | 7 +------
3 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/app/javascript/gabsocial/features/status/components/detailed_status.js b/app/javascript/gabsocial/features/status/components/detailed_status.js
index 7b87b54b..867f3c76 100644
--- a/app/javascript/gabsocial/features/status/components/detailed_status.js
+++ b/app/javascript/gabsocial/features/status/components/detailed_status.js
@@ -33,12 +33,17 @@ export default class DetailedStatus extends ImmutablePureComponent {
compact: PropTypes.bool,
showMedia: PropTypes.bool,
onToggleMediaVisibility: PropTypes.func,
+ onShowRevisions: PropTypes.func,
};
state = {
height: null,
};
+ handleShowRevisions = () => {
+ this.props.onShowRevisions(this.props.status);
+ }
+
handleOpenVideo = (media, startTime) => {
this.props.onOpenVideo(media, startTime);
}
@@ -187,11 +192,12 @@ export default class DetailedStatus extends ImmutablePureComponent {