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

Commit 4133ed0

Browse files
authored
Add support text to user-following interface.
1 parent 55ee31d commit 4133ed0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/site-positions-component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ 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

54+
5355
return $.div({className: `SitePositionsComponent-site site-${siteId} ${location} ${color}`},
54-
(portal.getFollowedSiteId() === siteId) ? $.div({className: 'icon icon-link'}) : null,
56+
(following) ? $.div({className: 'icon icon-link'}) : null,
5557
$.img({
5658
src: getAvatarURL(login, 80),
59+
title: `Click to ${following ? 'stop' : 'start'} following this user.`,
5760
onClick
5861
})
5962
)

0 commit comments

Comments
 (0)