mirror of https://github.com/node-red/node-red.git
Merge pull request #4113 from Steve-Mcl/select-deep-linked-item
Select the item that is specified in a deep link URLpull/4184/head
commit
ce6a4845f2
|
@ -263,6 +263,7 @@ var RED = (function() {
|
|||
setTimeout(() => {
|
||||
RED.view.reveal(nodeToShow.id)
|
||||
window.location.hash = currentHash
|
||||
RED.view.select(nodeToShow.id)
|
||||
if (showEditDialog) {
|
||||
RED.editor.edit(nodeToShow)
|
||||
}
|
||||
|
@ -273,6 +274,7 @@ var RED = (function() {
|
|||
if (nodeToShow) {
|
||||
RED.view.reveal(nodeToShow.id)
|
||||
window.location.hash = currentHash
|
||||
RED.view.select({ nodes: [nodeToShow] })
|
||||
if (showEditDialog) {
|
||||
RED.editor.editGroup(nodeToShow)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue