Skip to content

Commit 82b4cfd

Browse files
Dan range group default edit (#1008)
1 parent 6133906 commit 82b4cfd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pgml-dashboard/src/components/inputs/range_group/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl RangeGroup {
2020
pub fn new(title: &str) -> RangeGroup {
2121
RangeGroup {
2222
title: title.to_owned(),
23-
identifier: title.replace(" ", "_"),
23+
identifier: title.replace(" ", "_").to_lowercase(),
2424
min: 0,
2525
max: 100,
2626
step: 1.0,

pgml-dashboard/templates/content/playground.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ <h3 class="h3">Inputs</h3>
102102
<div class="my-5">
103103
<%+ RangeGroup::new("Input 1")
104104
.initial_value(4.0)
105-
.identifier("my_test_input")
106105
.bounds(2, 38, 2.0)
107106
.units("T") %>
108107
</div>

0 commit comments

Comments
 (0)