From 2fdeb63c83eee6bbcdcc0bc639a4d3d303f10e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Marseault?= <22910497+Larsluph@users.noreply.github.com> Date: Wed, 3 May 2023 20:19:00 +0200 Subject: [PATCH] fix: prevent mark all to send useless requests between single mark (#799) --- src/views/RssArticles.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/RssArticles.vue b/src/views/RssArticles.vue index 531feb7c..644cbfbf 100644 --- a/src/views/RssArticles.vue +++ b/src/views/RssArticles.vue @@ -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') {