fix: prevent mark all to send useless requests between single mark (#799)

This commit is contained in:
Rémi Marseault 2023-05-03 20:19:00 +02:00 committed by GitHub
parent 93d3fdc85a
commit 2fdeb63c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,8 +138,9 @@ export default defineComponent({
},
async markAllAsRead() {
for (const article of this.unreadArticles) {
await this.markAsRead(article)
await qbit.markAsRead(article.feedName, article.id)
}
this.$store.commit('FETCH_FEEDS')
},
handleKeyboardShortcut(e: KeyboardEvent) {
if (e.key === 'Escape') {