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/03/25 21:01:05 UTC

[whimsy] branch master updated: add remove from PMC only button to modify dialog

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 17fee7d  add remove from PMC only button to modify dialog
     new 1d106d3  Merge branch 'master' of github.com:apache/whimsy
17fee7d is described below

commit 17fee7d98b3b9ecea98c34f6917300fe56e1dc1a
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Mar 25 16:28:22 2018 -0400

    add remove from PMC only button to modify dialog
---
 www/roster/views/pmc/mod.js.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/roster/views/pmc/mod.js.rb b/www/roster/views/pmc/mod.js.rb
index 2416da3..da2fb07 100644
--- a/www/roster/views/pmc/mod.js.rb
+++ b/www/roster/views/pmc/mod.js.rb
@@ -77,6 +77,12 @@ class PMCMod < Vue
 
             _button.btn.btn_primary 'Remove from project', onClick: self.post,
               data_action: "remove #{remove_from.join(' ')}"
+
+            if @people.all? {|person| @@project.members.include? person.id}
+              _button.btn.btn_warning "Remove from PMC only", 
+                data_action: 'remove pmc info',
+                onClick: self.post
+            end
           end
         end
       end

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