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

View File

@ -13,7 +13,15 @@
{% if settings.SENTRY_DSN %} {% if settings.SENTRY_DSN %}
<script> <script>
Sentry.init({ dsn: '{{ settings.SENTRY_DSN }}' }); 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> </script>
{% endif %} {% endif %}
{% endblock content %} {% endblock content %}