diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js index 02e454242e..4f64726f15 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -1157,6 +1157,16 @@ ironIcon: 'call-merge' }); + items.push({ + name: Globalize.translate('MarkPlayed'), + id: 'markplayed' + }); + + items.push({ + name: Globalize.translate('MarkUnplayed'), + id: 'markunplayed' + }); + items.push({ name: Globalize.translate('ButtonRefresh'), id: 'refresh', @@ -1203,6 +1213,18 @@ case 'groupvideos': combineVersions($.mobile.activePage, items); break; + case 'markplayed': + items.forEach(function(itemId) { + ApiClient.markPlayed(Dashboard.getCurrentUserId(), itemId); + }); + hideSelections(); + break; + case 'markunplayed': + items.forEach(function (itemId) { + ApiClient.markUnplayed(Dashboard.getCurrentUserId(), itemId); + }); + hideSelections(); + break; case 'refresh': items.map(function (itemId) { diff --git a/dashboard-ui/strings/en-US.json b/dashboard-ui/strings/en-US.json index b5d5bf80ec..46726ac065 100644 --- a/dashboard-ui/strings/en-US.json +++ b/dashboard-ui/strings/en-US.json @@ -2334,5 +2334,7 @@ "OptionRequirePerfectSubtitleMatch": "Only download subtitles that are a perfect match for my video files", "ErrorAddingGuestAccount1": "There was an error adding the Emby Connect account. Has your guest created an Emby account? They can sign up at {0}.", "ErrorAddingGuestAccount2": "Please ensure your guest has completed activation by following the instructions in the email sent after creating the account. If they did not receive this email then please send an email to {0}, and include your email address as well as theirs.", - "GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address." + "GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.", + "MarkPlayed": "Mark played", + "MarkUnplayed": "Mark unplayed" }