Skip to content

Conversation

@colinl
Copy link
Collaborator

@colinl colinl commented Dec 15, 2025

Description

Fix widget enable/disable via ui_control node

Related Issue(s)

Partial fix for #711. Widget enable/disable fixed, but does not address widget show/hide

Checklist

  • [ x] I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label
@Steve-Mcl
Copy link
Contributor

Partial fix for #711. Widget enable/disable fixed, but does not address widget show/hide

To include visibility fix, try adding:

 if (this.resizable === false && widget.state.visible === false) { classes.push('d-none') }

to ui/src/layouts/Group.vue at line 147 (inside getWidgetClass)

It is essentially stating: "If not wysiwyg editing (resizable false) and widget.state.visible is false, apply class d-hide"
d-hide remove the widget from webpage layout by setting display: none !important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants