whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: post methods don't return @memberMail
Date Thu, 05 Jul 2018 21:27:03 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb 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 e0d0da5  post methods don't return @memberMail
e0d0da5 is described below

commit e0d0da566f073fd78d97ac6c311cb01847291e0f
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jul 5 22:27:02 2018 +0100

    post methods don't return @memberMail
---
 www/project/icla/views/pages/invite.js.rb | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/www/project/icla/views/pages/invite.js.rb b/www/project/icla/views/pages/invite.js.rb
index 496702f..19252c1 100644
--- a/www/project/icla/views/pages/invite.js.rb
+++ b/www/project/icla/views/pages/invite.js.rb
@@ -277,7 +277,7 @@ class Invite < Vue
             # headers
             _div do
               _b 'From: '
-              _span @memberEmail
+              _span @userEmail
             end
             _div do
               _b 'To: '
@@ -571,9 +571,9 @@ def setIclaName(event)
   def preview()
     if @phase == :invite
       previewInvitation()
-      elsif @phase == :discuss
+    elsif @phase == :discuss
       previewDiscussion()
-      elsif @phase == :vote
+    elsif @phase == :vote
       previewVote()
     end
   end
@@ -589,10 +589,13 @@ def setIclaName(event)
 
     @disabled = true
     @alert = nil
+    console.log('>previewInvitation: ' + data.inspect)
     post 'validate', data do |response|
+      console.log('<previewInvitation: ' + response.inspect)
       @disabled = false
       @alert = response.error
       @memberEmail = response.memberEmail
+      @userEmail = response.userEmail
       @pmcEmail = response.pmcEmail
       @invitation = response.invitation
       @token = response.token
@@ -613,10 +616,13 @@ def setIclaName(event)
 
     @disabled = true
     @alert = nil
+    console.log('>previewDiscussion: ' + data.inspect)
     post 'discuss', data do |response|
+      console.log('<previewDiscussion: ' + response.inspect)
       @disabled = false
       @alert = response.error
       @memberEmail = response.memberEmail
+      @userEmail = response.userEmail
       @pmcEmail = response.pmcEmail
       @discussion = response.discussion
       @token = response.token
@@ -640,11 +646,13 @@ def setIclaName(event)
 
     @disabled = true
     @alert = nil
+    console.log('>previewVote: ' + data.inspect)
     post 'vote', data do |response|
-      console.log(response.inspect)
+      console.log('<previewVote: ' + response.inspect)
       @disabled = false
       @alert = response.error
       @memberEmail = response.memberEmail
+      @userEmail = response.userEmail
       @pmcEmail = response.pmcEmail
       @token = response.token
       @message = response.message


Mime
View raw message