FlowFuse / nr-assistant

Apache License 2.0
1 stars 1 forks source link

FlowFuse Assistant creates Function node on locked Flow. #15

Closed 78wesley closed 2 weeks ago

78wesley commented 2 weeks ago

Current Behavior

When I have a locked flow open and I click on the FlowFuse assistant to create a function node for example "return hello world". It generates a node but it shouldn't do that because the Flow is locked. When I switch to another flow and back to the Flow where I ask the assistant. It has placed a function node at the left upper corner and there is a blue dot at the locked flow. Lucky it doesn't allow you to Deploy.

image image

Expected Behavior

Disable the assistant button when a Flow is locked.

Steps To Reproduce

  1. Open a locked flow
  2. Click on the assistant
  3. Give the assistant some text to generate code
  4. Click on generate
  5. Error

Environment

Type: Small / Node-RED 4.0.2 Template : Default v1 Node-RED Version: 4.0.2 Launcher Version: 2.6.0 Node.js Version: 20.15.0 Browser: Brave Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (64-bit)

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

knolleary commented 2 weeks ago

Thanks for reporting @78wesley - I've moved this over to the FlowFuse Assistant repo for tracking.