mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
feat: Log action when user is removed from card
This commit is contained in:
parent
eeb52d19bb
commit
3aedbff5d0
9 changed files with 86 additions and 17 deletions
|
@ -113,6 +113,36 @@ const Item = React.memo(({ id }) => {
|
|||
</Trans>
|
||||
);
|
||||
|
||||
break;
|
||||
case ActivityTypes.REMOVE_MEMBER_FROM_CARD:
|
||||
contentNode =
|
||||
user.id === activity.data.user.id ? (
|
||||
<Trans
|
||||
i18nKey="common.userLeftThisCard"
|
||||
values={{
|
||||
user: userName,
|
||||
}}
|
||||
>
|
||||
<span className={styles.author}>{userName}</span>
|
||||
<span className={styles.text}>{' left this card'}</span>
|
||||
</Trans>
|
||||
) : (
|
||||
<Trans
|
||||
i18nKey="common.userRemovedUserFromThisCard"
|
||||
values={{
|
||||
actorUser: userName,
|
||||
removedUser: activity.data.user.name,
|
||||
}}
|
||||
>
|
||||
<span className={styles.author}>{userName}</span>
|
||||
<span className={styles.text}>
|
||||
{' removed '}
|
||||
{activity.data.user.name}
|
||||
{' from this card'}
|
||||
</span>
|
||||
</Trans>
|
||||
);
|
||||
|
||||
break;
|
||||
default:
|
||||
contentNode = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue