0

Move follower count to tab title. Closes #1698

This commit is contained in:
Gabe Kangas 2022-01-24 14:35:15 -08:00
parent 8943be9bf9
commit 50b0bfbc4e
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
2 changed files with 5 additions and 6 deletions

View File

@ -831,7 +831,10 @@ export default class App extends Component {
if (federation.enabled) {
TAB_CONTENT.push({
label: 'Followers',
label: html`Followers
${federation.followerCount > 10
? `${' '}(${federation.followerCount})`
: null}`,
content: html`<${Followers} />`,
});
}

View File

@ -185,11 +185,7 @@ export function FediverseFollowButton({ serverName, federationInfo, onClick }) {
<${ExternalActionButton}
onClick=${handleClick}
action=${fediverseFollowAction}
label=${`Follow ${
federationInfo.followerCount > 10
? ` (${federationInfo.followerCount})`
: ''
}`}
label="Follow"
/>
</span>
`;