Skip to content

Commit

Permalink
Merge pull request #17 from FlowFuse/15-hande-locked-flow
Browse files Browse the repository at this point in the history
Correct handling of locked flows
  • Loading branch information
knolleary authored Jul 10, 2024
2 parents 1e916c9 + bd95939 commit 8808f91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@
}

function importFlow (flow, addFlow) {
if (RED.workspaces.isLocked && RED.workspaces.isLocked()) {
addFlow = true // force import to create a new tab
}
let newNodes = flow
try {
if (typeof flow === 'string') {
Expand Down Expand Up @@ -755,4 +758,4 @@
}
}
}(RED, $))
</script>
</script>

0 comments on commit 8808f91

Please sign in to comment.