Skip to content

Commit

Permalink
Merge pull request #1309 from FlowFuse/1266-switching-gauge-types-cle…
Browse files Browse the repository at this point in the history
…ars-users-entered-values

Preserve Range and Segments on Field Value Changes + Added Reset to Default Button
  • Loading branch information
gayanSandamal authored Sep 20, 2024
2 parents 8f7766c + b85f22a commit 4a4b185
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 233 deletions.
2 changes: 2 additions & 0 deletions nodes/widgets/locales/en-US/ui_gauge.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ <h3>Properties</h3>
<dd>Collection of objects that define the relevant color for a given value</dd>
<dt>Label <span class="property-type">list</span></dt>
<dd>The title text shown above the gauge</dd>
<dt>Defaults <span class="property-type">list</span></dt>
<dd>Reset to default min/max and segments based on the selected gauge type</dd>
</dl>
<h3>Properties (Half &amp; 3/4 Gauges Only)</h3>
<dl class="message-properties">
Expand Down
3 changes: 2 additions & 1 deletion nodes/widgets/locales/en-US/ui_gauge.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"styling": "Styling",
"class": "Class",
"units": "Units",
"icon": "Icon"
"icon": "Icon",
"defaults": "Defaults"
},
"errors": {
"unique": "All 'from' values must be unique."
Expand Down
Loading

0 comments on commit 4a4b185

Please sign in to comment.