From cd8f5a1b943dfb0d5d1d4cc548dc11edc67c5b71 Mon Sep 17 00:00:00 2001 From: or-else Date: Sun, 15 Apr 2018 12:55:10 -0700 Subject: [PATCH] remove badges from contact list --- index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 01070802..88fd4673 100644 --- a/index.html +++ b/index.html @@ -1906,7 +1906,15 @@ var selected = showCheckmark ? (this.props.topicSelected.indexOf(key) > -1) : (this.props.topicSelected === key); - var badges = (key === me ? [{name:'you',color:'green'}] : null); + var badges = []; + if (this.props.showMode) { + if (key === me) { + badges.push({name: 'you', color: 'green'}); + } + if (c.acs && c.acs.isOwner()) { + badges.push({name: 'owner'}); + } + } var comment = Array.isArray(c.private) ? c.private.join(", ") : c.private; contactNodes.push( @@ -2454,7 +2462,6 @@ newState.modeWant2 = user2.acs.getWant(); } else { topic.subscribers(function(sub){ - console.log(sub); newState.contactList.push(sub); }, this); }