Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #29 from zanata/FilterStatesUI
Browse files Browse the repository at this point in the history
Remove 'has error' filter out of 'complete' filtering option
  • Loading branch information
Alex Eng committed Jul 8, 2013
2 parents f84710e + 71737c4 commit c65bb7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Expand Up @@ -206,9 +206,9 @@ public void onFilterOptionsChanged(ValueChangeEvent<Boolean> event)

public void toggleCompleteChk()
{
if(translatedChk.getValue() == approvedChk.getValue() && approvedChk.getValue() == hasErrorChk.getValue())
if(translatedChk.getValue() == approvedChk.getValue())
{
if(hasErrorChk.getValue() == true)
if(approvedChk.getValue() == true)
{
completeChk.setValue(true);
}
Expand Down Expand Up @@ -258,7 +258,6 @@ public void onCompleteChkChanged(ValueChangeEvent<Boolean> event)
{
translatedChk.setValue(event.getValue());
approvedChk.setValue(event.getValue());
hasErrorChk.setValue(event.getValue());
onFilterOptionsChanged(event);
}

Expand All @@ -270,5 +269,6 @@ public void setOptionsState(ConfigurationState state)
untranslatedChk.setValue(state.isFilterByUntranslated());
approvedChk.setValue(state.isFilterByApproved());
rejectedChk.setValue(state.isFilterByRejected());
hasErrorChk.setValue(state.isFilterByHasError());
}
}
Expand Up @@ -43,8 +43,12 @@

.hasError {
border-left:3px solid #FF4500;
padding-right:5px;
opacity:0.6;
transition: .3s;
display:inline !important;
}

.filterListToggle {
font-size:16px;
cursor:pointer;
Expand Down Expand Up @@ -109,7 +113,7 @@
-moz-transition: .3s;
}

.filterList li span:hover {
.filterList li span:hover, .hasError:hover {
background-color: #fff;
opacity: 1;
}
Expand Down Expand Up @@ -166,11 +170,12 @@
<li>
<g:CheckBox ui:field="approvedChk" styleName="{style.approved} {style.checkbox}"><ui:msg>Approved</ui:msg></g:CheckBox>
</li>
<li>
<g:CheckBox ui:field="hasErrorChk" styleName="{style.hasError} {style.checkbox}"><ui:msg>Has warning</ui:msg></g:CheckBox>
</li>
</ul>
</li>

<li class="{style.drop-down}">
<g:CheckBox ui:field="hasErrorChk" styleName="{style.hasError} {style.checkbox}"><ui:msg>Has warning</ui:msg></g:CheckBox>
</li>
</ul>
</g:HTMLPanel>
</ui:UiBinder>

0 comments on commit c65bb7c

Please sign in to comment.