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 5f0343b Allow auth users to add missing entries
5f0343b is described below
commit 5f0343bc44e5db5883ad7f19eb61940d6f70d5ec
Author: Sebb <[email protected]>
AuthorDate: Sun Mar 24 14:18:55 2019 +0000
Allow auth users to add missing entries
---
www/roster/views/person/main.js.rb | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/www/roster/views/person/main.js.rb
b/www/roster/views/person/main.js.rb
index 98b9996..af88e8f 100644
--- a/www/roster/views/person/main.js.rb
+++ b/www/roster/views/person/main.js.rb
@@ -23,7 +23,8 @@ class Person < Vue
end
# Personal URL
- if @committer.urls
+ if @committer.urls || @auth
+ @committer.urls ||= ['<none defined>']
_PersonUrls person: self, edit: @edit
end
@@ -219,17 +220,20 @@ class Person < Vue
end
# PGP keys
- if @committer.pgp
+ if @committer.pgp || @auth
+ @committer.pgp ||= ['<none defined>']
_PersonPgpKeys person: self, edit: @edit
end
# SSH keys
- if @committer.ssh
+ if @committer.ssh || @auth
+ @committer.ssh ||= ['<none defined>']
_PersonSshKeys person: self, edit: @edit
end
# GitHub username
- if @committer.githubUsername
+ if @committer.githubUsername || @auth
+ @committer.githubUsername ||= ['<none defined>']
_PersonGitHub person: self, edit: @edit
end