mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-18 21:32:38 +01:00
299228b7b5
* feat: reduce initial request on wallet page - refactor allowed_currencies into function to use in generic and api. - remove currencies request in frontend move it to generic - dont request balance on first payments fetch
15 lines
406 B
Django/Jinja
15 lines
406 B
Django/Jinja
{% macro window_vars(user, wallet) -%}
|
|
<script>
|
|
window.extensions = {{ EXTENSIONS | tojson | safe }};
|
|
{% if currencies %}
|
|
window.currencies = {{ currencies | tojson | safe }};
|
|
{% endif %}
|
|
{% if user %}
|
|
window.user = {{ user | tojson | safe }};
|
|
{% endif %}
|
|
{% if wallet %}
|
|
window.wallet = {{ wallet | tojson | safe }};
|
|
{% endif %}
|
|
</script>
|
|
{%- endmacro %}
|