Move follower count to tab title. Closes #1698
This commit is contained in:
parent
8943be9bf9
commit
50b0bfbc4e
@ -831,7 +831,10 @@ export default class App extends Component {
|
|||||||
|
|
||||||
if (federation.enabled) {
|
if (federation.enabled) {
|
||||||
TAB_CONTENT.push({
|
TAB_CONTENT.push({
|
||||||
label: 'Followers',
|
label: html`Followers
|
||||||
|
${federation.followerCount > 10
|
||||||
|
? `${' '}(${federation.followerCount})`
|
||||||
|
: null}`,
|
||||||
content: html`<${Followers} />`,
|
content: html`<${Followers} />`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -185,11 +185,7 @@ export function FediverseFollowButton({ serverName, federationInfo, onClick }) {
|
|||||||
<${ExternalActionButton}
|
<${ExternalActionButton}
|
||||||
onClick=${handleClick}
|
onClick=${handleClick}
|
||||||
action=${fediverseFollowAction}
|
action=${fediverseFollowAction}
|
||||||
label=${`Follow ${
|
label="Follow"
|
||||||
federationInfo.followerCount > 10
|
|
||||||
? ` (${federationInfo.followerCount})`
|
|
||||||
: ''
|
|
||||||
}`}
|
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user