diff --git a/src/views/studio/l10n.json b/src/views/studio/l10n.json index da065babd..f6df79a13 100644 --- a/src/views/studio/l10n.json +++ b/src/views/studio/l10n.json @@ -87,6 +87,8 @@ "studio.activityBecomeCurator": "{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio", "studio.activityRemoveCurator": "{removerProfileLink} removed the curator {removedProfileLink}", "studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}", + "studio.activityBecomeHost": "{newHostProfileLink} was made the studio host by {actorProfileLink}", + "studio.activityBecomeHostAdminActor": "{newHostProfileLink} was made the studio host by a Scratch Team member.", "studio.lastUpdated": "Updated {lastUpdatedDate, date, medium}", "studio.followerCount": "{followerCount} followers", diff --git a/src/views/studio/studio-activity.jsx b/src/views/studio/studio-activity.jsx index 519dbb2d5..86aa4bc3e 100644 --- a/src/views/studio/studio-activity.jsx +++ b/src/views/studio/studio-activity.jsx @@ -167,6 +167,44 @@ const getComponentForItem = item => { /> ); + case 'becomehoststudio': + return ( + + {item.admin_actor ? + + {item.recipient_username} + + ) + }} + /> : + + {item.recipient_username} + + ), + actorProfileLink: ( + + {item.actor_username} + + ) + }} + /> + } + + ); } };