{# Show a message #}
{% embed '@Contao/backend/component/message/add_message.stream.html.twig' with {success: true} %}
    {% trans_default_domain 'contao_template_studio' %}

    {% block content %}
        {% set identifier_token -%}
            <span class="token">{{ identifier }}</span>
        {%- endset %}
        {{ 'template_studio.message.save.success'|trans([identifier_token])|raw }}
    {% endblock %}
{% endembed %}

{% if full_reload %}
    {# Reopen the current tab #}
    {{ render(path('_contao_template_studio_editor_tab.stream', {identifier})) }}
{% else %}
    {# Reload annotations #}
    {{ render(path('_contao_template_studio_annotations_data.stream', {identifier})) }}
{% endif %}
