mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2026-05-31 10:18:52 +00:00
fix(submission): open detail tab from current layout
This commit is contained in:
parent
6764ca3416
commit
be8f3ee945
@ -51,6 +51,9 @@ export const SubmissionTableRow = ({
|
|||||||
if (detailTab) {
|
if (detailTab) {
|
||||||
model.doAction(Actions.selectTab("detail"));
|
model.doAction(Actions.selectTab("detail"));
|
||||||
} else {
|
} else {
|
||||||
|
const submissionTab = model.getNodeById("submission");
|
||||||
|
const targetNodeId = submissionTab?.getParent()?.getId() ?? model.getRoot().getId();
|
||||||
|
|
||||||
model.doAction(
|
model.doAction(
|
||||||
Actions.addNode(
|
Actions.addNode(
|
||||||
{
|
{
|
||||||
@ -59,7 +62,7 @@ export const SubmissionTableRow = ({
|
|||||||
name: "Details",
|
name: "Details",
|
||||||
component: "detail",
|
component: "detail",
|
||||||
},
|
},
|
||||||
"1",
|
targetNodeId,
|
||||||
DockLocation.CENTER,
|
DockLocation.CENTER,
|
||||||
-1
|
-1
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user