Skip to content

Commit 38a5527

Browse files
authored
chore(data-modeling): always open data modeling workspace in a new tab COMPASS-9412 (#6968)
chore(data-modeling): always open data modeling workspace in a new tab
1 parent 181a9a0 commit 38a5527

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/compass-workspaces/src/provider.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,15 @@ export const WorkspacesServiceProvider: React.FunctionComponent<{
249249
},
250250
openDataModelingWorkspace: () => {
251251
return void store.dispatch(
252-
openWorkspaceAction({ type: 'Data Modeling' })
252+
openWorkspaceAction(
253+
{ type: 'Data Modeling' },
254+
{
255+
// Data Modeling tab is a special case, we always want to open it
256+
// in a new tab to make it easier for users to create / open new
257+
// diagrams
258+
newTab: true,
259+
}
260+
)
253261
);
254262
},
255263
openShellWorkspace(connectionId, options = {}) {

0 commit comments

Comments
 (0)