Skip to content

Commit

Permalink
fixed bug with extra select, fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Aug 24, 2017
1 parent 5c49e2b commit db19789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/gwt/org/bbop/apollo/gwt/client/TrackPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void filterList() {
static class TrackBodyPanel extends PanelBody {

private final TrackInfo trackInfo;


public TrackBodyPanel(TrackInfo trackInfo) {
this.trackInfo = trackInfo;
Expand Down Expand Up @@ -234,7 +234,7 @@ public void onValueChange(ValueChangeEvent<Boolean> event) {
}
});

checkBoxMap.put(trackInfo,selected);
checkBoxMap.put(trackInfo, selected);

label.addStyleName("track-link");
label.setWidth("100%");
Expand Down Expand Up @@ -306,7 +306,7 @@ private static void renderFiltered() {


for (final String key : categoryMap.keySet()) {
if (key != TrackInfo.TRACK_UNCATEGORIZED) {
if (!key.equals(TrackInfo.TRACK_UNCATEGORIZED)) {

final List<TrackInfo> trackInfoList = categoryMap.get(key);

Expand All @@ -328,11 +328,10 @@ private static void renderFiltered() {
Heading heading = new Heading(HeadingSize.H4, key);
panelHeader.add(heading);
heading.addStyleName("track-header");
totalBadge = new Badge(trackInfoList.size() + "");
totalBadge = new Badge(Integer.toString(trackInfoList.size()));
totalBadge.setPull(Pull.RIGHT);
panelHeader.add(panelSelect);
panelHeader.add(totalBadge);
panelHeader.add(panelSelect);
panel.add(panelHeader);
}

Expand Down Expand Up @@ -369,7 +368,7 @@ public void onShow(ShowEvent showEvent) {
}
if (numVisible == 0) {
panelSelect.setValue(false);
} else if(numVisible == trackInfoList.size()) {
} else if (numVisible == trackInfoList.size()) {
panelSelect.setValue(true);
}
panelSelect.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
Expand Down
1 change: 1 addition & 0 deletions src/gwt/org/bbop/apollo/gwt/public/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@
.panel-select {
background-color: #f5f5f5 !important;
border: none !important;
padding: 0 0 0 5px !important;
}

0 comments on commit db19789

Please sign in to comment.