Skip to content

[NR5] Info badge is displayed for comment node if name is set #5855

Closed

Description

@XueSheng-GIT

Current Behavior

Since updating to Node-RED 5.0.1, all comment nodes with a Name set show the info badge. But actually, no additional info was added to the node (which is quite confusing). It's not possible anymore to differentiate comments with/without additional text added.
See also https://discourse.nodered.org/t/nr5-0-1-info-badge-for-all-comment-nodes/101402

Expected Behavior

Info badge should only be shown if additional text was added to the comment node.

Steps To Reproduce

  1. Add a comment node
  2. Enter a name
  3. Save node
  4. See info badge added to comment node

Example flow

[
    {
        "id": "4a4238581a5b1a7c",
        "type": "comment",
        "z": "ef100889e52b534f",
        "name": "",
        "info": "",
        "x": 360,
        "y": 680,
        "wires": []
    },
    {
        "id": "067aa1ec1001df27",
        "type": "comment",
        "z": "ef100889e52b534f",
        "name": "Comment _without_ text added",
        "info": "",
        "x": 570,
        "y": 680,
        "wires": []
    },
    {
        "id": "76933c26065c1fed",
        "type": "comment",
        "z": "ef100889e52b534f",
        "name": "Comment with text added",
        "info": "Hello World",
        "x": 830,
        "y": 680,
        "wires": []
    }
]

Environment

  • Node-RED version: 5.0.1
  • Node.js version: -
  • npm version: -
  • Platform/OS: -
  • Browser: -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions