Skip to content

Commit

Permalink
UI - Overview list shortcut button - Ability to reset any previous er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
dgtlmoon committed Mar 6, 2024
1 parent 8b8ed58 commit de77680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changedetectionio/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,13 @@ def form_watch_list_checkbox_operations():
update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid, 'skip_when_checksum_same': False}))
flash("{} watches queued for rechecking".format(len(uuids)))

elif (op == 'clear-errors'):
for uuid in uuids:
uuid = uuid.strip()
if datastore.data['watching'].get(uuid):
datastore.data['watching'][uuid]["last_error"] = False
flash(f"{len(uuids)} watches errors cleared")

elif (op == 'clear-history'):
for uuid in uuids:
uuid = uuid.strip()
Expand Down
1 change: 1 addition & 0 deletions changedetectionio/templates/watch-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<button class="pure-button button-secondary button-xsmall" name="op" value="assign-tag" id="checkbox-assign-tag">Tag</button>
<button class="pure-button button-secondary button-xsmall" name="op" value="mark-viewed">Mark viewed</button>
<button class="pure-button button-secondary button-xsmall" name="op" value="notification-default">Use default notification</button>
<button class="pure-button button-secondary button-xsmall" name="op" value="clear-errors">Clear errors</button>
<button class="pure-button button-secondary button-xsmall" style="background: #dd4242;" name="op" value="clear-history">Clear/reset history</button>
<button class="pure-button button-secondary button-xsmall" style="background: #dd4242;" name="op" value="delete">Delete</button>
</div>
Expand Down

0 comments on commit de77680

Please sign in to comment.