You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/08 23:21:29 UTC
[whimsy] branch master updated: Don't show button unless there is a
file
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 718b3db Don't show button unless there is a file
718b3db is described below
commit 718b3dbe5a88fd1c5e29828b46ce128089dc8d51
Author: Sebb <se...@apache.org>
AuthorDate: Thu Jul 9 00:21:20 2020 +0100
Don't show button unless there is a file
---
www/roster/views/person/memstat.js.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/www/roster/views/person/memstat.js.rb b/www/roster/views/person/memstat.js.rb
index a93b119..fad639f 100644
--- a/www/roster/views/person/memstat.js.rb
+++ b/www/roster/views/person/memstat.js.rb
@@ -43,9 +43,11 @@ class PersonMemberStatus < Vue
console.log('memstat edit menu secretary...')
if committer.member.status.include? 'Active'
emeritus_file_url = committer.forms['emeritus_request']
- _button.btn.btn_primary 'move to emeritus',
- data_emeritus_file_url:emeritus_file_url,
- name: 'action', value: 'emeritus'
+ if emeritus_file_url
+ _button.btn.btn_primary 'move to emeritus',
+ data_emeritus_file_url:emeritus_file_url,
+ name: 'action', value: 'emeritus'
+ end
_button.btn.btn_primary 'move to deceased',
name: 'action', value: 'deceased'
_input 'dod', name: 'dod', value: dod