fix: open moderation panel when coming from moderation email

This commit is contained in:
lesion 2024-05-07 23:04:21 +02:00
parent bb371b55f5
commit e0765dcf2b
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ export default {
error({ statusCode: 404, message: 'Event not found' })
}
},
data ({$store}) {
data ({$route}) {
return {
mdiArrowLeft, mdiArrowRight, mdiDotsVertical, mdiCodeTags, mdiCalendarExport, mdiCalendar, mdiFileDownloadOutline, mdiMessageTextOutline,
mdiMapMarker, mdiContentCopy, mdiClose, mdiDelete, mdiEye, mdiEyeOff, mdiRepeat, mdiMap, mdiChevronUp, mdiMonitorAccount, mdiBookmark, mdiStar, mdiShareAll,
@ -159,7 +159,7 @@ export default {
event: {},
showEmbed: false,
mapModal: false,
openModeration: false,
openModeration: $route?.query?.moderation ? true : false,
reporting: false
}
},

View file

@ -1,3 +1,3 @@
extends ../layout.pug
block content
p !{t(`report.content_${author}`, {config, event, message, url: `${config.baseurl}/event/${event.slug || event.id}`})}
p !{t(`report.content_${author}`, {config, event, message, url: `${config.baseurl}/event/${event.slug || event.id}?moderation=true`})}