mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Fix tab name calculation to account for pinned tabs (#1385)
This commit is contained in:
parent
d8edea9fbc
commit
3945995d73
@ -70,7 +70,7 @@ func CreateTab(ctx context.Context, workspaceId string, tabName string, activate
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("workspace %s not found: %w", workspaceId, err)
|
return "", fmt.Errorf("workspace %s not found: %w", workspaceId, err)
|
||||||
}
|
}
|
||||||
tabName = "T" + fmt.Sprint(len(ws.TabIds)+1)
|
tabName = "T" + fmt.Sprint(len(ws.TabIds)+len(ws.PinnedTabIds)+1)
|
||||||
}
|
}
|
||||||
tab, err := createTabObj(ctx, workspaceId, tabName, pinned)
|
tab, err := createTabObj(ctx, workspaceId, tabName, pinned)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user