Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
a64ef10c
Commit
a64ef10c
authored
Aug 22, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1420 from dprotti/master
Do not show number of items completed in the Clear completed button.
parents
8464bc38
e6d89469
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
examples/gwt/src/com/todo/client/ToDoView.java
examples/gwt/src/com/todo/client/ToDoView.java
+0
-4
examples/gwt/src/com/todo/client/ToDoView.ui.xml
examples/gwt/src/com/todo/client/ToDoView.ui.xml
+1
-3
No files found.
examples/gwt/src/com/todo/client/ToDoView.java
View file @
a64ef10c
...
@@ -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
);
}
}
...
...
examples/gwt/src/com/todo/client/ToDoView.ui.xml
View file @
a64ef10c
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment