mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
feat: review facts
This commit is contained in:
parent
9ccc6b8271
commit
c70211153e
2 changed files with 4 additions and 17 deletions
|
|
@ -79,24 +79,11 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!selectedMetaItem.inLibrary) {
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
args: {
|
||||
action: 'AddToLibrary',
|
||||
args: selectedMetaItem
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
action: 'MetaDetails',
|
||||
args: {
|
||||
action: 'LibraryItemMarkAsWatched',
|
||||
args: {
|
||||
id: selectedMetaItem.id,
|
||||
is_watched: !selectedMetaItem.watched
|
||||
}
|
||||
action: 'MarkAsWatched',
|
||||
args: !selectedMetaItem.watched
|
||||
}
|
||||
});
|
||||
}, [selectedMetaItem]);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ const MetaDetails = ({ urlParams, queryParams }) => {
|
|||
action: 'MetaDetails',
|
||||
args: {
|
||||
action: 'MarkAsWatched',
|
||||
args: !metaDetails.metaItem.watched
|
||||
args: !metaDetails.metaItem.content.content.watched
|
||||
}
|
||||
});
|
||||
}, [metaDetails]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue