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 96f5a3e  update based on client model changes
96f5a3e is described below

commit 96f5a3e8487d3e60a728d31379e2892db3d7ee9c
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Dec 20 11:17:39 2017 -0500

    update based on client model changes
---
 www/board/agenda/views/buttons/attend.js.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/board/agenda/views/buttons/attend.js.rb 
b/www/board/agenda/views/buttons/attend.js.rb
index 9a5d6cc..1703af0 100644
--- a/www/board/agenda/views/buttons/attend.js.rb
+++ b/www/board/agenda/views/buttons/attend.js.rb
@@ -13,14 +13,14 @@ class Attend < Vue
 
   # match person by either userid or name
   def created()
-    person = @@item.people[User.userid]
+    person = @@item.people[User.id]
     if person
       @attending = person.attending
     else
       @attending = false
       for id in @@item.people
         person = @@item.people[id]
-        @attending = person.attending if person.name == Pending.username
+        @attending = person.attending if person.name == User.username
       end
     end
   end
@@ -29,8 +29,8 @@ class Attend < Vue
     data = {
       agenda: Agenda.file,
       action: (@attending ? 'regrets' : 'attend'),
-      name: Pending.username,
-      userid: User.userid
+      name: User.username,
+      userid: User.id
     }
 
     @disabled = true

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to