Compare commits

...
2 Commits
Author SHA1 Message Date
ArtemBozhko 67dc1fb2ed Add debug config 2026-08-14 17:46:45 +03:00
ArtemBozhko 62d96eaf6c Attach review form events 2026-08-14 17:44:23 +03:00
3 changed files with 9 additions and 2 deletions
+7
View File
@@ -6,6 +6,13 @@
"name": "Development server",
"request": "launch",
"type": "node-terminal"
},
{
"type": "chrome",
"request": "launch",
"name": "Debug React (Chrome)",
"url": "http://localhost:4321",
"webRoot": "${workspaceFolder}"
}
]
}
+1 -1
View File
@@ -64,7 +64,7 @@ const canDelete = (reviewUserId: string) => user !== null && (user.isAdmin || re
<div class="card" style="padding:24px;margin-bottom:24px;">
<h3>{dict.about.writeVenueReview}</h3>
{user ? (
<VenueReviewForm dict={dict} />
<VenueReviewForm client:load dict={dict} />
) : (
<p>
<a href={localizedPath(locale, `/login?redirect=${encodeURIComponent(`/${locale}/about`)}`)}>
+1 -1
View File
@@ -149,7 +149,7 @@ const canDelete = (reviewUserId: string) => user !== null && (user.isAdmin || re
<div class="card" style="padding:24px;">
<h3>{dict.event.writeReview}</h3>
{user ? (
<ReviewForm eventId={event.id} dict={dict} />
<ReviewForm client:load eventId={event.id} dict={dict} />
) : (
<p>
<a href={localizedPath(locale, `/login?redirect=${encodeURIComponent(`/${locale}/events/${event.slug}`)}`)}>