From a590446a1f13aa4c00a8367f222dbc1b1efc5599 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 22 Aug 2020 14:36:02 -0400 Subject: added numbered tabs --- src/client/views/collections/CollectionDockingView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/views/collections') 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 { 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)}` })); } }); -- cgit v1.2.3-70-g09d2