Modal window is now autocompleted if user is logged in

This commit is contained in:
Théo DURR 2022-08-27 20:14:31 +02:00
parent b97ce81dd2
commit 820bf6279b
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
1 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,15 @@
{% if settings.SENTRY_DSN %}
<script>
Sentry.init({ dsn: '{{ settings.SENTRY_DSN }}' });
Sentry.showReportDialog({ eventId: '{{ request.sentry_last_event_id() }}' })
Sentry.showReportDialog({
eventId: '{{ request.sentry_last_event_id() }}',
{% if user.is_authenticated %}
user: {
'name': '{{user.first_name}} {{user.last_name}}',
'email': '{{user.email}}'
}
{% endif %}
})
</script>
{% endif %}
{% endblock content %}