Skip to content

Commit

Permalink
#4583 - Ability to configure layer visibility via a sidebar
Browse files Browse the repository at this point in the history
- Fix typo in markup
  • Loading branch information
reckart committed Mar 6, 2024
1 parent ceb4dc2 commit f027a2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
</div>
<div class="scrolling card-body p-0">
<ul class="list-group list-group-flush">
<li class="list-group-item"wicket:id="annotationLayers">
<span wicket:id="annotationLayerActive"/>
<wicket:container wicket:id="annotationLayerDesc"/>
<li wicket:id="annotationLayers" class="list-group-item">
<span wicket:id="visibleToggle"/>
<wicket:container wicket:id="name"/>
</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected void populateItem(ListItem<AnnotationLayer> aItem)
var layer = aItem.getModelObject();
var hiddenLayerIds = prefs.getHiddenAnnotationLayerIds();

var layerVisible = new IconToggleBox("annotationLayerActive") //
var layerVisible = new IconToggleBox("visibleToggle") //
.setCheckedIcon(FontAwesome5IconType.eye_s)
.setCheckedTitle(Model.of("Visible"))
.setUncheckedIcon(FontAwesome5IconType.eye_slash_s)
Expand All @@ -110,7 +110,7 @@ protected void populateItem(ListItem<AnnotationLayer> aItem)
_target)));
aItem.add(layerVisible);

aItem.add(new Label("annotationLayerDesc", layer.getUiName()));
aItem.add(new Label("name", layer.getUiName()));
}
};
}
Expand Down

0 comments on commit f027a2e

Please sign in to comment.