blocks repeated watchlist actions so one happens at a time, and gates watchlist behind user id + item

This commit is contained in:
Simon Eklundh
2026-07-04 12:12:32 +02:00
parent 0cac1f8779
commit a39637f187
4 changed files with 34 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ interface Props extends ViewProps {
* Render only when settings.useKefinTweaks is enabled.
*/
export const AddToKefinWatchlist: FC<Props> = ({ item, ...props }) => {
const { isWatchlisted, toggleWatchlist } = useWatchlist(item);
const { isWatchlisted, toggleWatchlist, isPending } = useWatchlist(item);
return (
<View {...props}>
@@ -22,6 +22,7 @@ export const AddToKefinWatchlist: FC<Props> = ({ item, ...props }) => {
icon={isWatchlisted ? "bookmark" : "bookmark-outline"}
color={isWatchlisted ? "purple" : "white"}
onPress={toggleWatchlist}
disabled={isPending}
/>
</View>
);