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