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 0cc6eb9  Add button for missing committership
0cc6eb9 is described below

commit 0cc6eb9ce01db2043285f6ecf3ecfd879059b767
Author: Sebb <[email protected]>
AuthorDate: Thu Feb 28 23:02:54 2019 +0000

    Add button for missing committership
---
 www/roster/views/ppmc/mentors.js.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/roster/views/ppmc/mentors.js.rb 
b/www/roster/views/ppmc/mentors.js.rb
index 7052ab6..499886f 100644
--- a/www/roster/views/ppmc/mentors.js.rb
+++ b/www/roster/views/ppmc/mentors.js.rb
@@ -72,6 +72,7 @@ class PPMCMentor < Vue
       end
         
       _td data_ids: @@person.id do
+        # TODO: how does this become enabled?
         if @@person.selected
           if @@auth.ppmc
             unless @@ppmc.owners.include? @@person.id
@@ -80,6 +81,14 @@ class PPMCMentor < Vue
                 data_target: '#confirm', data_toggle: 'modal',
                 data_confirmation: "Add #{@@person.name} as member of the " +
                   "#{@@ppmc.display_name} PPMC?"
+            else
+              unless @@ppmc.committers.include? @@person.id
+                _button.btn.btn_primary 'Add to the podling committers',
+                  data_action: 'add committer',
+                  data_target: '#confirm', data_toggle: 'modal',
+                  data_confirmation: "Add #{@@person.name} as committer of the 
" +
+                    "#{@@ppmc.display_name} PPMC?"
+              end
             end
           end
         elsif not @@person.name

Reply via email to