diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-10 10:53:57 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-10 10:53:57 -0400 |
| commit | 9c5d0fc25b14619bedf96a9988be4f8c254812c4 (patch) | |
| tree | 4babd722fe15bd1cbc80a276897b55161c635358 /src/client/views/collections/TabDocView.tsx | |
| parent | 7d38e4a98a0382cdd032d63d375707f19362873d (diff) | |
| parent | 78b3b4f194b94a230ff0b07e397b595700d6529f (diff) | |
Merge branch 'master' into master-cleanup
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 142013d1a..022b9fa24 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -115,20 +115,12 @@ export class TabDocView extends React.Component<TabDocViewProps> { } })); }; - - closeWrap.className = "lm_iconWrap"; - closeWrap.id = "lm_closeWrap"; - closeWrap.onclick = (e: MouseEvent) => { - tab.header.parent.contentItem.remove(); - Doc.AddDocToList(CurrentUserUtils.MyHeaderBarDoc, "data", tab.DashDoc); - Doc.AddDocToList(CurrentUserUtils.MyRecentlyClosed, "data", tab.DashDoc, undefined, true, true); - }; + const docIcon = <FontAwesomeIcon onPointerDown={dragBtnDown} icon={iconType} />; - const closeIcon = <FontAwesomeIcon icon={"times"} />; + const closeIcon = <FontAwesomeIcon icon={"eye"} />; ReactDOM.render(docIcon, iconWrap); ReactDOM.render(closeIcon, closeWrap); tab.reactComponents = [iconWrap, closeWrap]; - // tab.element[0].append(closeWrap); tab.element[0].prepend(iconWrap); tab._disposers.layerDisposer = reaction(() => ({ layer: tab.DashDoc.activeLayer, color: this.tabColor }), ({ layer, color }) => { @@ -580,4 +572,4 @@ export class TabMinimapView extends React.Component<TabMinimapViewProps> { </div> </div>; } -} +}
\ No newline at end of file |
