From fe48683c529f9ad601c3b2a1e487e2c28ef74257 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 11 Dec 2024 13:51:53 +0100 Subject: [PATCH] refactor: :recycle: move puting action to episode on separate ts file --- src/components/Feed/Episode.vue | 23 +++++------------------ src/components/Feed/Episodes.vue | 29 +++++++---------------------- src/utils/status.ts | 15 +++++++++++++++ 3 files changed, 27 insertions(+), 40 deletions(-) diff --git a/src/components/Feed/Episode.vue b/src/components/Feed/Episode.vue index 502dbab..7d5d13b 100644 --- a/src/components/Feed/Episode.vue +++ b/src/components/Feed/Episode.vue @@ -41,7 +41,7 @@ :model-value="hasEnded(episode)" :name="t('repod', 'Read')" :title="t('repod', 'Read')" - @click="markAs(episode, !hasEnded(episode))"> + @click="read(episode, !hasEnded(episode))">