Commit e6d89469 authored by Duilio Protti's avatar Duilio Protti

Do not show number of items completed in the Clear completed button.

See https://github.com/tastejs/todomvc-app-css#6
parent 8464bc38
......@@ -59,9 +59,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
@UiField
Element todoStatsContainer;
@UiField
SpanElement clearTasksCount;
@UiField
Button clearCompleted;
......@@ -149,7 +146,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
remainingTasksCount.setInnerText(Integer.toString(remainingTasks));
remainingTasksLabel.setInnerText(remainingTasks > 1 || remainingTasks == 0 ? "items" : "item");
clearTasksCount.setInnerHTML(Integer.toString(completedTasks));
toggleAll.setChecked(totalTasks == completedTasks);
}
......
......@@ -39,9 +39,7 @@
<g:Hyperlink targetHistoryToken="/completed" styleName="{style.inline}" ui:field="routingCompleted">Completed</g:Hyperlink>
</li>
</ul>
<g:Button ui:field="clearCompleted">
Clear completed (<span class="number-done" ui:field="clearTasksCount"></span>)
</g:Button>
<g:Button ui:field="clearCompleted"></g:Button>
</footer>
</section>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment