fix(mod): show correct connections in settings

This commit is contained in:
trisua 2025-04-26 19:46:41 -04:00
parent c7235158c2
commit f10384ff39

View file

@ -507,7 +507,7 @@
>
<div class="card w-full flex flex-wrap gap-2">
{% if config.connections.spotify_client_id and not
user.connections.Spotify %}
profile.connections.Spotify %}
<button
class="quaternary"
onclick="trigger('spotify::create_connection', ['{{ config.connections.spotify_client_id }}'])"
@ -516,7 +516,7 @@
<span>Spotify</span>
</button>
{% endif %} {% if config.connections.last_fm_key and not
user.connections.LastFm %}
profile.connections.LastFm %}
<button
class="quaternary"
onclick="trigger('last_fm::create_connection', ['{{ config.connections.last_fm_key }}'])"
@ -527,7 +527,7 @@
{% endif %}
</div>
{% for key, value in user.connections %}
{% for key, value in profile.connections %}
<div class="card-nest">
<div class="card small flex items-center gap-2">
{% if key == "Spotify" %} {{ icon "spotify" }} {% elif key ==