You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/16 16:38:26 UTC

[whimsy] branch master updated: don't count action items as awaiting preapprovals

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

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new c2c5e32  don't count action items as awaiting preapprovals
c2c5e32 is described below

commit c2c5e326c09958876056cac7d581db42da52f2c1
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 16 12:37:44 2018 -0400

    don't count action items as awaiting preapprovals
---
 www/board/agenda/views/models/agenda.js.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index 7feb598..7bcccb5 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -389,7 +389,9 @@ class Agenda
 
     # awaiting preapprovals
     count = 0
-    Agenda.index.each {|item| count += 1 if item.color == 'ready'}
+    Agenda.index.each do |item| 
+      count += 1 if item.color == 'ready' and item.title != 'Action Items'
+    end
     results << {color: 'ready', count: count, href: 'queue',
       text: 'awaiting preapprovals'}
 

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.