preserve media filter when toggling skipped media

This commit is contained in:
meeb 2021-02-19 14:25:14 +11:00
parent 6fbf72d0e7
commit e3423bc2d2
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@
</div>
<div class="col s12 m3">
{% if show_skipped %}
<a href="{% url 'sync:media' %}" class="btn"><i class="far fa-eye-slash"></i> Hide skipped media</a>
<a href="{% url 'sync:media' %}{% if source %}?filter={{ source.pk }}{% endif %}" class="btn"><i class="far fa-eye-slash"></i> Hide skipped media</a>
{% else %}
<a href="{% url 'sync:media' %}?show_skipped=yes" class="btn"><i class="far fa-eye"></i> Show skipped media</a>
<a href="{% url 'sync:media' %}?show_skipped=yes{% if source %}&filter={{ source.pk }}{% endif %}" class="btn"><i class="far fa-eye"></i> Show skipped media</a>
{% endif %}
</div>
</div>