Disable lastfm import button if auto imports on

This commit is contained in:
2023-04-19 00:03:51 -04:00
parent 88bd049d95
commit f1c22bfbc0

View File

@ -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>