diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-22 14:36:02 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-22 14:36:02 -0400 |
| commit | a590446a1f13aa4c00a8367f222dbc1b1efc5599 (patch) | |
| tree | f543cca200a29490d728885e8d0fbe79f143d450 /src/client/views/collections | |
| parent | 8bb233569b1bfe51dcd79cd1aa8ee7f78de1522b (diff) | |
added numbered tabs
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index afc8b9711..56865fccc 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -641,7 +641,8 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp //stack.header.controlsContainer.find('.lm_popout').hide(); stack.header.element.on('mousedown', (e: any) => { if (e.target === stack.header.element[0] && e.button === 1) { - this.AddTab(stack, Docs.Create.FreeformDocument([], { _width: this.props.PanelWidth(), _height: this.props.PanelHeight(), title: "Untitled Tab" })); + Doc.UserDoc().myTabCount = NumCast(Doc.UserDoc().myTabCount) + 1; + this.AddTab(stack, Docs.Create.FreeformDocument([], { _width: this.props.PanelWidth(), _height: this.props.PanelHeight(), title: `Untitled Tab ${NumCast(Doc.UserDoc().myTabCount)}` })); } }); |
