mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Allow sections to toggle in 2-element stack
This commit is contained in:
@@ -66,6 +66,14 @@ RED.stack = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
entry.expand();
|
entry.expand();
|
||||||
|
} else if (entries.length === 2) {
|
||||||
|
if (entries[0] === entry) {
|
||||||
|
entries[0].collapse();
|
||||||
|
entries[1].expand();
|
||||||
|
} else {
|
||||||
|
entries[1].collapse();
|
||||||
|
entries[0].expand();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
entry.toggle();
|
entry.toggle();
|
||||||
|
Reference in New Issue
Block a user