kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Show Unauthorized modal for 'X people going'
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>environments/review-events-25kg8c/deployments/1660
rodzic
4448309adc
commit
39b9cf4eed
|
@ -329,9 +329,13 @@ const EventHeader: React.FC<IEventHeader> = ({ status }) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
dispatch(openModal('EVENT_PARTICIPANTS', {
|
if (!ownAccount) {
|
||||||
statusId: status.id,
|
dispatch(openModal('UNAUTHORIZED'));
|
||||||
}));
|
} else {
|
||||||
|
dispatch(openModal('EVENT_PARTICIPANTS', {
|
||||||
|
statusId: status.id,
|
||||||
|
}));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Ładowanie…
Reference in New Issue