diff --git a/main_dc/BB/bbvue/src/components/EventCard.vue b/main_dc/BB/bbvue/src/components/EventCard.vue
index f4057c5..1c27073 100644
--- a/main_dc/BB/bbvue/src/components/EventCard.vue
+++ b/main_dc/BB/bbvue/src/components/EventCard.vue
@@ -51,7 +51,7 @@
@@ -132,6 +132,13 @@ export default {
}
})
+ const getRegistrationId = () => {
+ const registration = props.userRegistrations.find(reg =>
+ reg.event_id === props.event.id
+ )
+ return registration?.id
+ }
+
const formatDate = (dateString) => {
return new Date(dateString).toLocaleDateString('ru-RU', {
day: 'numeric',
@@ -154,6 +161,7 @@ export default {
isFull,
eventTypeLabel,
imageStyle,
+ getRegistrationId,
formatDate,
truncateDescription
}
@@ -162,6 +170,7 @@ export default {