Explorar o código

Disable lastfm import button if auto imports on

Colin Powell %!s(int64=2) %!d(string=hai) anos
pai
achega
f1c22bfbc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      vrobbler/templates/scrobbles/scrobble_list.html

+ 1 - 1
vrobbler/templates/scrobbles/scrobble_list.html

@@ -52,7 +52,7 @@
         <div class="btn-toolbar mb-2 mb-md-0">
             {% if user.is_authenticated %}
             <div class="btn-group me-2">
-                {% if user.profile.lastfm_username %}
+                {% if user.profile.lastfm_username and not user.profile.lastfm_auto_import %}
 
                 <form action="{% url 'scrobbles:lastfm-import' %}" method="get">
                     <button type="submit" class="btn btn-sm btn-outline-secondary">Last.fm Sync</button>