diff options
| author | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-19 23:53:05 +0800 |
|---|---|---|
| committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-19 23:53:05 +0800 |
| commit | 084025582325b662a442538dde911b58920a8d8b (patch) | |
| tree | 4603fb7119aa34c5e7dc54cc6c925888e90b3ecb /src/client/views/DocumentButtonBar.tsx | |
| parent | d3a28452843dbbb94b79d3d9617076c7327fbfb9 (diff) | |
| parent | e374eb7c6ef542cc27c10e8d56b10f3a49a7e7e3 (diff) | |
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
| -rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index edad9ce21..8a12bf467 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -206,7 +206,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV return !targetDoc ? (null) : <Tooltip title={<><div className="dash-tooltip">{Doc.isDocPinned(targetDoc) ? "Unpin from presentation" : "Pin to presentation"}</div></>}> <div className="documentButtonBar-linker" style={{ backgroundColor: isPinned ? "white" : "", color: isPinned ? "black" : "white", border: isPinned ? "black 1px solid " : "" }} - onClick={e => DockedFrameRenderer.PinDoc(targetDoc, isPinned)}> + onClick={e => this.props.views().map(view => view && DockedFrameRenderer.PinDoc(view.props.Document, isPinned))}> <FontAwesomeIcon className="documentdecorations-icon" size="sm" icon="map-pin" /> </div></Tooltip>; |
