From d2b42b10146af17802d2aa9dc06fa564d1e5e4a3 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sun, 15 Sep 2019 17:57:12 +0300 Subject: [PATCH] add copy document link to the share menu --- frontend/src/Documents/DocumentEdit.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/frontend/src/Documents/DocumentEdit.tsx b/frontend/src/Documents/DocumentEdit.tsx index 012d2cf..e6ce466 100644 --- a/frontend/src/Documents/DocumentEdit.tsx +++ b/frontend/src/Documents/DocumentEdit.tsx @@ -67,6 +67,7 @@ export class DocumentEditComponent extends React.PureComponent< this.handleNameKeyPress = this.handleNameKeyPress.bind(this); this.share = this.share.bind(this); this.remove = this.remove.bind(this); + this.copyLink = this.copyLink.bind(this); this.save = this.save.bind(this); this.onUnload = this.onUnload.bind(this); } @@ -101,6 +102,13 @@ export class DocumentEditComponent extends React.PureComponent< } content={ + {doc.shared && ( + + )}