Commit a64ef10c authored by Arthur Verschaeve's avatar Arthur Verschaeve

Merge pull request #1420 from dprotti/master

Do not show number of items completed in the Clear completed button.
parents 8464bc38 e6d89469
...@@ -59,9 +59,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View { ...@@ -59,9 +59,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
@UiField @UiField
Element todoStatsContainer; Element todoStatsContainer;
@UiField
SpanElement clearTasksCount;
@UiField @UiField
Button clearCompleted; Button clearCompleted;
...@@ -149,7 +146,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View { ...@@ -149,7 +146,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
remainingTasksCount.setInnerText(Integer.toString(remainingTasks)); remainingTasksCount.setInnerText(Integer.toString(remainingTasks));
remainingTasksLabel.setInnerText(remainingTasks > 1 || remainingTasks == 0 ? "items" : "item"); remainingTasksLabel.setInnerText(remainingTasks > 1 || remainingTasks == 0 ? "items" : "item");
clearTasksCount.setInnerHTML(Integer.toString(completedTasks));
toggleAll.setChecked(totalTasks == completedTasks); toggleAll.setChecked(totalTasks == completedTasks);
} }
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
<g:Hyperlink targetHistoryToken="/completed" styleName="{style.inline}" ui:field="routingCompleted">Completed</g:Hyperlink> <g:Hyperlink targetHistoryToken="/completed" styleName="{style.inline}" ui:field="routingCompleted">Completed</g:Hyperlink>
</li> </li>
</ul> </ul>
<g:Button ui:field="clearCompleted"> <g:Button ui:field="clearCompleted"></g:Button>
Clear completed (<span class="number-done" ui:field="clearTasksCount"></span>)
</g:Button>
</footer> </footer>
</section> </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