diff --git a/lib/site-positions-component.js b/lib/site-positions-component.js index 046b8fea..2c0b056e 100644 --- a/lib/site-positions-component.js +++ b/lib/site-positions-component.js @@ -46,14 +46,16 @@ class SitePositionsComponent { const {login} = portal.getSiteIdentity(siteId) const color = this.isCursorVisibleForSite(siteId) ? `color--site-${siteId}` : '' const location = this.getLocationForSite(siteId) + const following = portal.getFollowedSiteId() === siteId const onClick = (location === 'viewing-non-portal-item') ? () => {} : () => this.onSelectSiteId(siteId) return $.div({className: `SitePositionsComponent-site site-${siteId} ${location} ${color}`}, - (portal.getFollowedSiteId() === siteId) ? $.div({className: 'icon icon-link'}) : null, + (following) ? $.div({className: 'icon icon-link'}) : null, $.img({ src: getAvatarURL(login, 80), + title: `Click to ${following ? 'stop' : 'start'} following this user.`, onClick }) )