Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ca0d35b

Browse files
committed
Add support text to user-following interface.
1 parent 55ee31d commit ca0d35b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/site-positions-component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ class SitePositionsComponent {
4646
const {login} = portal.getSiteIdentity(siteId)
4747
const color = this.isCursorVisibleForSite(siteId) ? `color--site-${siteId}` : ''
4848
const location = this.getLocationForSite(siteId)
49+
const following = portal.getFollowedSiteId() === siteId
4950
const onClick = (location === 'viewing-non-portal-item')
5051
? () => {}
5152
: () => this.onSelectSiteId(siteId)
5253

5354
return $.div({className: `SitePositionsComponent-site site-${siteId} ${location} ${color}`},
54-
(portal.getFollowedSiteId() === siteId) ? $.div({className: 'icon icon-link'}) : null,
55+
(following) ? $.div({className: 'icon icon-link'}) : null,
5556
$.img({
5657
src: getAvatarURL(login, 80),
58+
title: `Click to ${following ? 'stop' : 'start'} following this user.`,
5759
onClick
5860
})
5961
)

0 commit comments

Comments
 (0)