aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-08 16:57:30 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-08 16:57:30 -0400
commitc1f49a0974982b803c565b6ac3c8931be7c8972f (patch)
tree98dcb6949b1ced239b123ed385b3568907b32535 /src/client/views/DocumentButtonBar.tsx
parente627a85430345db08c03027a6b816141fb4f4a2c (diff)
added " " for switching between pan/zoom & marquee.
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index d58eb5875..48685302a 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -229,16 +229,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV
return !targetDoc ? (null) : <div className="documentButtonBar-linker"
title={Doc.isDocPinned(targetDoc) ? "Unpin from presentation" : "Pin to presentation"}
style={{ backgroundColor: isPinned ? "black" : "white", color: isPinned ? "white" : "black" }}
-
- onClick={e => {
- if (isPinned) {
- DockedFrameRenderer.UnpinDoc(targetDoc);
- }
- else {
- targetDoc.sourceContext = this.view0?.props.ContainingCollectionDoc; // bcz: !! Shouldn't need this ... use search to lookup contexts dynamically
- DockedFrameRenderer.PinDoc(targetDoc);
- }
- }}>
+ onClick={e => DockedFrameRenderer.PinDoc(targetDoc, isPinned)}>
<FontAwesomeIcon className="documentdecorations-icon" size="sm" icon="map-pin"
/>
</div>;