diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-16 00:51:59 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-16 00:51:59 -0400 |
| commit | 931c74152e59abb835787a602d76c39e410c1627 (patch) | |
| tree | 15b4c1d3b13df4764ac251a216da321c886fe723 /src/client/views/DocumentButtonBar.tsx | |
| parent | 63f2f4927f0fd3e4d1d74b91599bc585fe820a29 (diff) | |
fixed pinning multiple documents to undo all at once.
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 9dddb4c44..076502042 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -189,7 +189,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV return !targetDoc ? (null) : <Tooltip title={<><div className="dash-tooltip">{"Pin to presentation"}</div></>}> <div className="documentButtonBar-linker" style={{ color: "white" }} - onClick={e => this.props.views().map(view => view && TabDocView.PinDoc(view.props.Document, false))}> + onClick={undoBatch(e => this.props.views().map(view => view && TabDocView.PinDoc(view.props.Document, false)))}> <FontAwesomeIcon className="documentdecorations-icon" size="sm" icon="map-pin" /> </div></Tooltip>; } |
