Add confirmation for thread cleaning

This commit is contained in:
Jeff Sandberg 2021-02-06 02:31:40 -07:00
parent 981675dce9
commit bbb5785340
No known key found for this signature in database
GPG Key ID: 8298889FE3FA639C

View File

@ -127,6 +127,7 @@ ThreadWatcher =
$.open a.href
$.event 'CloseMenu'
clear: ->
return unless confirm "Delete ALL threads from watcher?"
for {siteID, boardID, threadID} in ThreadWatcher.getAll()
ThreadWatcher.db.delete {siteID, boardID, threadID}
ThreadWatcher.refresh()