diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index 998d62a2..456676d2 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -122,8 +122,11 @@ > - - @@ -183,6 +186,7 @@ export default { showShareModal: false, showVideo: true, showConfirmRemove: false, + showMarkOnWatched: false, }; }, computed: { @@ -195,6 +199,7 @@ export default { }, mounted() { this.shouldShowVideo(); + this.shouldShowMarkOnWatched(); }, methods: { removeVideo() { @@ -217,6 +222,9 @@ export default { } }; }, + shouldShowMarkOnWatched() { + this.showMarkOnWatched = this.getPreferenceBoolean("watchHistory", false); + }, toggleWatched(videoId) { if (window.db) { // Should match WatchVideo.vue