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