This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch feature/router
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/router by this push:
     new 27b6ee4  items should be contextually correct
27b6ee4 is described below

commit 27b6ee42dc83ac2711881c6ec51025cdfe312f31
Author: Harbs <[email protected]>
AuthorDate: Sun Feb 2 23:02:28 2020 +0200

    items should be contextually correct
---
 .../src/main/royale/jewel/todomvc/controllers/TodoController.as       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
 
b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
index f63d397..b05640c 100644
--- 
a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
+++ 
b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
@@ -208,8 +208,8 @@ package jewel.todomvc.controllers
                 */
                public function updateInterface():void {
                        setListState();
-
-                       model.itemsLeftLabel = model.activeItems.length + " 
item left";
+                       var item:String = model.activeItems.length == 1 " item 
" : " items ";
+                       model.itemsLeftLabel = model.activeItems.length + item 
+ "left";
             model.clearCompletedVisibility = model.completedItems.length != 0;
                        model.footerVisibility = model.allItems.length != 0;
                        model.toogleAllVisibility = model.allItems.length != 0;

Reply via email to