Pause/Unpause should respect limit tag on redirect

pull/34/head
dgtlmoon 4 years ago
parent c7169ebba1
commit 1e45156bc0

@ -106,7 +106,7 @@ def changedetection_app(config=None, datastore_o=None):
datastore.data['watching'][pause_uuid]['paused'] ^= True
datastore.needs_write = True
return redirect(url_for('index', limit_tag = limit_tag))
return redirect(url_for('index', tag = limit_tag))
except KeyError:
pass

@ -45,7 +45,7 @@
{% if watch.paused is defined and watch.paused != False %}paused{% endif %}
{% if watch.newest_history_key| int > watch.last_viewed| int %}unviewed{% endif %}">
<td>{{ loop.index }}</td>
<td class="paused-state state-{{watch.paused}}"><a href="/?pause={{ watch.uuid}}"><img src="/static/images/pause.svg" alt="Pause"/></a></td>
<td class="paused-state state-{{watch.paused}}"><a href="/?pause={{ watch.uuid}}&tag={{active_tag}}"><img src="/static/images/pause.svg" alt="Pause"/></a></td>
<td class="title-col">{{watch.title if watch.title is not none else watch.url}}
<a class="external" target="_blank" rel="noopener" href="{{ watch.url }}"></a>
{% if watch.last_error is defined and watch.last_error != False %}

Loading…
Cancel
Save